//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());
        }
Ejemplo n.º 2
0
 public ActionResult Cataloge()
 {
     ViewData["count1"] = ca.count1();
     ViewData["CCHH"]   = ca.Listcataloge();
     return(View());
 }