コード例 #1
0
 public virtual string ValidateApprover(Employee approverToValidate) {
     return Convert.ToString(((((approverToValidate.Equals(Claimant))) ? Employee.CANT_BE_APPROVER_FOR_OWN_CLAIMS : null)));
 }
コード例 #2
0
            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();
            }