예제 #1
0
 public Customer cast2Customer(CustomerCRVM newCustomer)
 {
     return(new Customer
     {
         customerName = newCustomer.CustomerName,
         customerPassword = newCustomer.CustomerPassword
     });
 }
예제 #2
0
 public Customer cast2Customer(CustomerCRVM customer2aBCasted)
 {
     return(new Customer
     {
         Name = customer2aBCasted.Name,
         Phone = customer2aBCasted.Phone
     });
 }
예제 #3
0
 public Customer cast2Customer(CustomerCRVM customer2BCasted)
 {
     return(new Customer
     {
         FirstName = customer2BCasted.FirstName,
         LastName = customer2BCasted.LastName,
         PhoneNumber = customer2BCasted.PhoneNumber
     });
 }
예제 #4
0
 public Customer cast2Customer(CustomerCRVM customer2BCasted)
 {
     return(new Customer
     {
         CustomerName = customer2BCasted.CustomerName,
         PhoneNumber = customer2BCasted.PhoneNumber,
         CarType = customer2BCasted.CarType
     });
 }
예제 #5
0
 public Customer cast2Customer(CustomerCRVM customer2BCasted)
 {
     return(new Customer
     {
         CustomerName = customer2BCasted.CustomerName,
         CustomerEmail = customer2BCasted.CustomerEmail,
         CustomerPasswordHash = Convert.ToBase64String(new StoreBL.PasswordHash(customer2BCasted.CustomerPasswordHash).ToArray()),
         CustomerPhone = customer2BCasted.CustomerPhone,
         CustomerAddress = customer2BCasted.CustomerAddress
     });
 }