// GET: Admin/MenuBanHang public ActionResult Index() { var iplMonAn = new MenuMonAnModel(); var model = iplMonAn.ListAll(); return(View(model)); }
// 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)); }