示例#1
0
 public Customer ToNewCustomerEntity(CustomerDto customerDto)
 {
     return new Customer()
         {
             Login = customerDto.Login,
             Password = Security.CalculateMD5Hash(customerDto.Password),
             Name = customerDto.Name,
             Surname = customerDto.Surname
         };
 }
示例#2
0
 public static RegistrationRequest Create(CustomerDto customer)
 {
     return new RegistrationRequest(customer);
 }
示例#3
0
 public RegistrationRequest(CustomerDto customer)
 {
     this.NewCustomerData = customer;
 }