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