예제 #1
0
        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());
        }
예제 #4
0
        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());
        }
예제 #5
0
 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));
 }
예제 #8
0
 public IResult Update(UserOperationClaim userOperationClaim)
 {
     _userOperaitonClaimDal.Update(userOperationClaim);
     return(new SuccessResult(Messages.UpdatedUserOperationClaims));
 }