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)); }
public async Task <WalletAction> GetAsync(Guid id) { return(await _repository.GetAsync(id)); }