Beispiel #1
0
        public async Task <IResult> AddUserOperationClaimAsync(UserOperationClaimAddDto userOperationClaimAddDto)
        {
            var result = await _userDal.AddUserOperationClaimAsync(new UserOperationClaim()
            {
                OperationClaimId = userOperationClaimAddDto.OperationClaimId,
                UserId           = userOperationClaimAddDto.UserId
            });

            if (!result)
            {
                return(new ErrorResult(Messages.AuthorizationToUserNotAdded));
            }

            return(new SuccessResult(Messages.AuthorizationToUserAdded));
        }