Пример #1
0
        public ActionResult BoughtList()
        {
            BoughtListViewModel BoutListView;

            if (TempData["ErrorPage"] != null)
            {
                BoutListView = (BoughtListViewModel)TempData["ErrorPage"];
                ModelState.Merge((ModelStateDictionary)TempData["ModelState"]);
            }
            else
            {
                BoutListView        = new BoughtListViewModel();
                BoutListView.Result = ABS.GetAllData();
            }


            return(View("BoughtList", BoutListView));
        }