예제 #1
0
 private static void PrintProducts()
 {
     AW_ProductRepo aw_pR = new AW_ProductRepo();
     List<AW_Product> products = aw_pR.GetAll();
     foreach (var prod in products)
     {
         Console.WriteLine("-------------------");
         Console.WriteLine(prod.ProductID);
         Console.WriteLine(prod.Name);
         Console.WriteLine(prod.Color);
         Console.WriteLine(prod.ListPrice);
         Console.WriteLine(prod.Size);
         Console.WriteLine(prod.SizeUnitMeasureCode);
         Console.WriteLine(prod.WeightUnitMeasureCode);
     }
 }
예제 #2
0
 public ActionResult Top5Products()
 {
     AW_ProductRepo aw_pR = new AW_ProductRepo();
     List<AW_Product> list = aw_pR.GetAll();
     return View(list);
 }