public async Task <ClientDto> Update(ClientDto dto) { var client = await dbContext.Clients .Include(x => x.Address) .Include(x => x.Rate) .Where(x => x.Id == dto.Id) .FirstAsync(); ClientMapper.MapUpdate(client, dto); await dbContext.SaveChangesAsync(); return(ClientDtoMapper.Map(client)); }