public static List <tblSubMenu> GetMenus()
 {
     using (var context = new OnlineFoodDBEntities())
     {
         return(context.tblSubMenus.ToList());
     }
 }
 public static List <tblItem> GetallRecentItem()
 {
     using (var context = new OnlineFoodDBEntities())
     {
         return(context.tblItems.Where(u => u.IsAvailable == "Special").Take(8).ToList());
     }
 }
 public static List <tblSubMenu> GetSubMenus(int menuid)
 {
     using (var context = new OnlineFoodDBEntities())
     {
         return(context.tblSubMenus.Where(u => u.SubMenuId == menuid).ToList());
     }
 }
 public static List <tblItem> GetAllFood()
 {
     using (var context = new OnlineFoodDBEntities())
     {
         return(context.tblItems.ToList());
     }
 }