public static void AddOrder(string user, string foodname, string size, string pepper, string chilli, string ketchup, string tartar) { FoodOrders2 entities = new FoodOrders2(); FoodListTable order = new FoodListTable(); order.UserName = user; order.Food = foodname; order.SizeOfMeal = size; order.Pepper = pepper; order.Chilli = chilli; order.Ketchup = ketchup; order.Tartar = tartar; entities.FoodListTables.Add(order); entities.SaveChanges(); }
public static List <Food> ListFood() { FoodOrders2 entities = new FoodOrders2(); return(entities.Foods.ToList <Food>()); }
public static List <Size> ListSize() { FoodOrders2 entities = new FoodOrders2(); return(entities.Sizes.ToList <Size>()); }