public CustomerDto Update(CustomerDto customerDto) { var existingCustomer = _customerRepository.Get(customerDto.Id); existingCustomer.SetFields(customerDto.FullName, customerDto.CityCode, customerDto.BirthDate); _customerRepository.Update(existingCustomer); return(_customerMapper.ToCustomerDto(existingCustomer)); }