Beispiel #1
0
        public IActionResult Add()
        {
            if (HttpContext.Session.GetString("USER_LOGIN_KEY") != "admin")
            {
                return(Redirect("Index"));
            }

            var category = _itemBll.GetCategories();

            ViewBag.cateList = category;

            return(View());
        }