Marius Vasile

Marius Vasile

  • 601
  • 1.9k
  • 143.1k

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)