コード例 #1
0
        // GET: Admin/MenuBanHang
        public ActionResult Index()
        {
            var iplMonAn = new MenuMonAnModel();
            var model    = iplMonAn.ListAll();

            return(View(model));
        }
コード例 #2
0
        // GET: MenuBanHang
        public ActionResult Index()
        {
            var  menu           = new MenuMonAnModel();
            var  model          = menu.ListAll();
            bool isKHDaDangNhap = false;

            if (this.HttpContext.User.Identity.IsAuthenticated)
            {
                if (AccountModel.GetLoaiUser(this.HttpContext.User.Identity.Name) == "kh")
                {
                    isKHDaDangNhap = true;
                }
            }
            ViewBag.IsKhachHangDaDangNhap = isKHDaDangNhap;
            return(View(model));
        }