Esempio n. 1
0
 public static IEnumerable <Product> ShopDropDown()
 {
     using (var context = new SiteContext()) {
         return(context.Products.ToList());
     }
 }
Esempio n. 2
0
 public static IEnumerable <Customer> ProfileImage()
 {
     using (var context = new SiteContext()) {
         return(context.Customers.ToList());
     }
 }