Marius Vasile

Marius Vasile

  • 600
  • 1.7k
  • 125.3k

asp.net core search parameter int not working

Dec 31 2020 4:51 PM
I have a filter implemented with 
  1. PTWContents = await _context.PTWContents.Where(x => x.OrgID == UserDataRole.OrgID && x.PTWStatus.Equals(SearchPTWStatus)).OrderByDescending(x => x.PTWNo).ToListAsync();  
where SearchPTWStatus is a string which is working perfectly.
 
But when I try to use the same approach where the search parameter is an integer I got no result. What else should I do?
 

Answers (2)