public Cart() { Cart c = this.GetFromSession(); if (c != null) { ctx = c.ctx; WhyNotValid = c.WhyNotValid; } else { ctx = new ASPNETDBEntities(); WhyNotValid = new List<string>(); this.AddToSession(); } }
public void history(Guid userId) { ASPNETDBEntities db = new ASPNETDBEntities(); var query = db.Bookings.SingleOrDefault(x => x.customer_id == userId); }
public void Empty() { ctx = new ASPNETDBEntities(); }