public ActionResult Edit(Category category) { if (!isAuthenticated()) { return(RedirectToAction("Index", "Auth")); } _categoryBll.Edit(category.CategoryId, category); return(RedirectToAction("Index")); }