public async Task <IResult> Handle(UpdateOperationClaimCommand request, CancellationToken cancellationToken) { var claimToUpdate = new OperationClaim { Id = request.Id, Name = request.ClaimName }; await _operationClaimDal.UpdateAsync(claimToUpdate); return(new SuccessResult(Messages.OperationClaimUpdated)); }
public async Task <IResult> Update(OperationClaim operationClaim) { await _operationClaimDal.UpdateAsync(operationClaim); return(new SuccessResult(Messages.OperationClaimUpdated)); }