Example #1
0
 public Customer cast2Customer(CustomerCRVM newCustomer)
 {
     return(new Customer
     {
         customerName = newCustomer.CustomerName,
         customerPassword = newCustomer.CustomerPassword
     });
 }
Example #2
0
 public Customer cast2Customer(CustomerCRVM customer2aBCasted)
 {
     return(new Customer
     {
         Name = customer2aBCasted.Name,
         Phone = customer2aBCasted.Phone
     });
 }
Example #3
0
 public Customer cast2Customer(CustomerCRVM customer2BCasted)
 {
     return(new Customer
     {
         FirstName = customer2BCasted.FirstName,
         LastName = customer2BCasted.LastName,
         PhoneNumber = customer2BCasted.PhoneNumber
     });
 }
Example #4
0
 public Customer cast2Customer(CustomerCRVM customer2BCasted)
 {
     return(new Customer
     {
         CustomerName = customer2BCasted.CustomerName,
         PhoneNumber = customer2BCasted.PhoneNumber,
         CarType = customer2BCasted.CarType
     });
 }
Example #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
     });
 }