Example #1
0
        public Customer(DB_Project.Models.Customer customer)
        {
            Id    = customer.Id.ToString();
            Name  = customer.Name;
            Phone = customer.Phone;

            if (customer.Cart != null)
            {
                CartId = customer.Cart.Id.ToString();
            }
        }
Example #2
0
 public Customer(DB_Project.Models.Customer customer)
 {
     Id    = customer.Id.ToString();
     Name  = customer.Name;
     Phone = customer.Phone;
 }