コード例 #1
0
        public ActionResult test()
        {
            DataClassesStationeryDataContext dtdc = new DataClassesStationeryDataContext();
            ViewModel vm = new ViewModel();
            if (Session["Employee"] == null)
            {
                return RedirectToAction("Login", "Default1");
            }

            return View();
        }
コード例 #2
0
        //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();
        }