public static IEnumerable <Discount> Discounts()
 {
     using (ShoppingEntities shop = new ShoppingEntities())
     {
         return(shop.Discount.ToList());
     }
 }
 public static IEnumerable <Orders> OrdersList()
 {
     using (ShoppingEntities entities = new ShoppingEntities())
     {
         return(entities.Orders.ToList());
     }
 }
 public static IEnumerable <Cart> CartsList()
 {
     using (ShoppingEntities entities = new ShoppingEntities())
     {
         return(entities.Cart.ToList());
     }
 }
 public static IEnumerable <Products> ProductList()
 {
     using (ShoppingEntities entities = new ShoppingEntities())
     {
         return(entities.Products.ToList());
     }
 }