Exemplo n.º 1
0
        public async Task <WalletActionDto> GetAsync(Guid id)
        {
            var result = await _repository.GetAsync(id);

            if (result.UserId != CurrentUser.GetId())
            {
                throw new UserFriendlyException(L["NoPermissions"]);
            }

            return(ObjectMapper.Map <WalletAction, WalletActionDto>(result));
        }
Exemplo n.º 2
0
 public async Task <WalletAction> GetAsync(Guid id)
 {
     return(await _repository.GetAsync(id));
 }