public async Task <ClientDto> Create(ClientDto dto) { var client = ClientMapper.Map(dto); await this.dbContext.Clients.AddAsync(client); await this.dbContext.SaveChangesAsync(); return(ClientDtoMapper.Map(client)); }
public Task <Client> FindClientByIdAsync(string clientId) { var poco = _repo.FindClientByUsernameAsync(clientId).Result; return(Task.FromResult(ClientMapper.Map(poco))); }