public int TotalDFNosByDept(Employee emp, DFStatus dFStatus) { return(db.DisbursementForms .Where(x => x.DeptRep.Department == emp.Department) .Where(x => x.DFStatus == dFStatus) .Count()); }
public int TotalDFNos(Employee emp, DFStatus dFStatus) { return(db.DisbursementForms .Where(x => x.DFStatus == dFStatus) .Count()); }