public ActionResult ItemCategoryManagement() { if (Request.IsAuthenticated) { ViewBag.ItemCategoryActionMsg = TempData["ItemCategoryActionMsg"]; string userId = FindUserID(); ItemRepo itemRepo = new ItemRepo(); IEnumerable <ItemCategoryVM> items = itemRepo.GetItemCategories(userId); return(View(items)); } else { return(RedirectToAction("Login", "Home")); } }