public ActionResult Update(int Id) { CategoryVM categoryViewModel = new CategoryVM() { Category = _categoryRepo.GetCategory(Id), categoryOptions = _categoryRepo.GetCategoryOptions(Id), PageTitle = "Edit Category" }; return(View(categoryViewModel)); }