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