public IResult Update(UserOperationClaim userOperationClaim) { var claim = GetClaimByUserId(userOperationClaim.UserId).Data; claim.UserId = userOperationClaim.UserId; claim.OperationClaimId = userOperationClaim.OperationClaimId; _userOperationClaimDal.Update(claim); return(new SuccessResult(Messages.UserOperationClaimAdded)); }
public IResult Update(UserOperationClaim userOperationClaim) { IResult result = BusinessRules.Run(CheckUserHasOperationClaim(userOperationClaim)); if (result != null) { return(result); } _userOperationClaimDal.Update(userOperationClaim); return(new SuccessResult(Messages.UserOperationClaimUpdated)); }
public IResult Update(UserOperationClaim userOperationClaim) { IResult result = BusinessRule.Run ( CheckIfUserOperationClaimExist(userOperationClaim.Id) ); if (result != null) { return(result); } _userOperationClaimDal.Update(userOperationClaim); return(new SuccessResult()); }
public IResult Update(UserOperationClaim userOperationClaim) { IResult result = BusinessRules.Run( CheckIfClaimAlreadyExists(userOperationClaim.UserId, userOperationClaim.OperationClaimId) ); if (result != null) { return(result); } _userOperationClaimDal.Update(userOperationClaim); return(new SuccessResult()); }
public IResult Update(UserOperationClaim userOperationClaim) { _userOperationClaimDal.Update(userOperationClaim); return(new SuccessResult()); }
//[ValidationAspect(typeof(UserOperationClaimValidator))] public IResult Update(UserOperationClaim entity) { _userDal.Update(entity); return(new SuccessResult(Messages.ItemUpdated)); }
public IResult Update(UserOperationClaim userOperationClaim) { _userOperationClaimDal.Update(userOperationClaim); return(new SuccessResult(BusinessMessages.UserOperationClaimUpdated)); }
public IResult Update(UserOperationClaim userOperationClaim) { _userOperaitonClaimDal.Update(userOperationClaim); return(new SuccessResult(Messages.UpdatedUserOperationClaims)); }