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(); } }
public Customer(DB_Project.Models.Customer customer) { Id = customer.Id.ToString(); Name = customer.Name; Phone = customer.Phone; }