コード例 #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 Gizmos()
 {
     ViewBag.SyncOrAsync = "Synchronous";
     var gizmoService = new GizmoService();
     return View("Gizmos", gizmoService.GetGizmos());
 }