public Customer ToNewCustomerEntity(CustomerDto customerDto) { return new Customer() { Login = customerDto.Login, Password = Security.CalculateMD5Hash(customerDto.Password), Name = customerDto.Name, Surname = customerDto.Surname }; }
public static RegistrationRequest Create(CustomerDto customer) { return new RegistrationRequest(customer); }
public RegistrationRequest(CustomerDto customer) { this.NewCustomerData = customer; }