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