コード例 #1
0
        public ActionResult Index()
        {
            ViewBag.Message = "Angie's Inventory.";

            // if models been passed in because it's not the first time ????? IS it possible to go back to HttpGet??
            //if (model != null)
            //{
            //    return View(model);
            //}

            var model = _inventoryHelper.GetInventoryViewModel();

            return(View(model));
        }
コード例 #2
0
        public ActionResult Index()
        {
            ViewBag.Message = "Angie's Inventory.";

            return(View(_inventoryHelper.GetInventoryViewModel()));
        }