예제 #1
0
        } // h kiem tra session tai khoan  nhan vien

        public ActionResult Create()
        {
            if (Ktdangnhap() == true)
            {
                List <NhaCungCap> lstcc = NhaCungCapMager.getAll();
                ViewBag.nhaccc = lstcc;
                TaiKhoan tk = (TaiKhoan)Session["USER_SESSION"];
                int      id = tk.MaTK;
                NhanVien nv = NhanVienMager.GetbyTK(id);

                ViewBag.MaNv = nv.MaNV;
                return(View());
            }
            else
            {
                return(RedirectToAction("Index", "Home"));
            }
        }
예제 #2
0
        public ActionResult Index()
        {
            List <NhaCungCap> lst = NhaCungCapMager.getAll();

            return(View(lst));
        }