public List <StationeryRetrieval> GetListSRWithSRStatus(SRStatus sRStatus) { List <StationeryRetrieval> srList = db.StationeryRetrievals.OrderBy(x => x.SRDate) .Where(x => x.SRStatus == sRStatus) .ToList(); return(srList); }
public int TotalSRNos(Employee emp, SRStatus sRStatus) { return(db.StationeryRetrievals .Where(x => x.SRStatus == sRStatus) .Count()); }