public ActionResult Edit(Category category) { if (ModelState.IsValid) { _categoryService.Update(category); TempData["Messeage"] = ValidateMesseage.UpdateSuccessful; return RedirectToAction("Index"); } return View(category); }
public void Update(Category entity) { _categoryRepository.Update(entity); }
public void Add(Category entity) { _categoryRepository.Insert(entity); }