public Customer cast2Customer(CustomerEditVM customer2BCasted) { return(new Customer { Name = customer2BCasted.Name, Phone = customer2BCasted.Phone }); }
public Customer cast2Customer(CustomerEditVM customer2BCasted) { return(new Customer { Id = customer2BCasted.CustomerId, CustomerName = customer2BCasted.CustomerName, CustomerEmail = customer2BCasted.CustomerEmail, CustomerPasswordHash = Convert.ToBase64String(new StoreBL.PasswordHash(customer2BCasted.CustomerPasswordHash).ToArray()), CustomerPhone = customer2BCasted.CustomerPhone, CustomerAddress = customer2BCasted.CustomerAddress }); }