Exemplo n.º 1
0
 public static List <tblProduct> GetAllItems()
 {
     using (var context = new eveningDBEntities())
     {
         return(context.tblProducts.Take(8).ToList());
     }
 }
Exemplo n.º 2
0
 public static List <tblProduct> GetAllSpecialItem()
 {
     using (var context = new eveningDBEntities())
     {
         return(context.tblProducts.OrderByDescending(e => e.ProductId).Where(s => s.IsSpecial == true).Take(8).ToList());
     }
 }
Exemplo n.º 3
0
 public static List <tblCategory> GetMenus()
 {
     using (var context = new eveningDBEntities())
     {
         return(context.tblCategories.ToList());
     }
 }