public virtual string ValidateApprover(Employee approverToValidate) { return Convert.ToString(((((approverToValidate.Equals(Claimant))) ? Employee.CANT_BE_APPROVER_FOR_OWN_CLAIMS : null))); }
public IList<Claim> findClaimsAwaitingApprovalBy(Employee approver) { IQueryable<Claim> query = from claim in Instances<Claim>() where approver.Equals(claim.Approver) && claim.Status.TitleString.Equals(ClaimStatus.SUBMITTED) select claim; return query.ToList(); }