Esempio n. 1
0
 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();
     }
 }
Esempio n. 2
0
 public void history(Guid userId)
 {
     ASPNETDBEntities db = new ASPNETDBEntities();
     var query = db.Bookings.SingleOrDefault(x => x.customer_id == userId);
 }
Esempio n. 3
0
 public void Empty()
 {
     ctx = new ASPNETDBEntities();
 }