Example #1
0
 public int CountTravelByApprover(int Id)
 {
     return(_claim.GetAllQ()
            .Where(x => x.ClaimType == ClaimType.TravelClaim && ((x.StatusOne == StatusOne.Waiting && x.ClaimApproverOneId == Id) || (x.StatusTwo == StatusTwo.Waiting && x.ClaimApproverTwoId == Id && x.StatusOne == StatusOne.Approved)))
            .Count());
 }