public ActionResult test() { DataClassesStationeryDataContext dtdc = new DataClassesStationeryDataContext(); ViewModel vm = new ViewModel(); if (Session["Employee"] == null) { return RedirectToAction("Login", "Default1"); } return View(); }
//mo ve view Request public ActionResult Index() { DataClassesStationeryDataContext dtdc = new DataClassesStationeryDataContext(); ViewModel vm = new ViewModel(); if(Session["Employee"]==null) { return RedirectToAction("Login" , "Default1"); } ViewData["sanpham"] = s.ListStationery(); CatalogeModel clm = new CatalogeModel(); ViewData["dsachcata"] = clm.Listcataloge(); ViewData["count"] = s1.count(); return View(); }