public RedirectToRouteResult EditCategory(Category[] arr) { using (SSISdbEntities e = new SSISdbEntities()) { DAL.CategoryRepositoryImpl dal = new DAL.CategoryRepositoryImpl(e); dal.UpdateCategory(arr[0]); e.SaveChanges(); Session["MaintenanceCategoriesPage"] = "1"; return(RedirectToAction("Maintenance", "Store")); } }