示例#1
0
        public ActionResult PWG()
        {
            ViewBag.SyncType = "Synchronous";
            var widgetService = new WidgetService();
            var prodService = new ProductService();
            var gizmoService = new GizmoService();

            var pwgVM = new ProdGizWidgetVM(
                widgetService.GetWidgets(),
                prodService.GetProducts(),
                gizmoService.GetGizmos()
               );

            return View("PWG", pwgVM);
        }
示例#2
0
 public ActionResult Products()
 {
     ViewBag.SyncOrAsync = "Synchronous";
     var prodService = new ProductService();
     return View("Products", prodService.GetProducts());
 }