コード例 #1
0
 public ActionResult Edit(Category category)
 {
     if (ModelState.IsValid)
     {
         _categoryService.Update(category);
         TempData["Messeage"] = ValidateMesseage.UpdateSuccessful;
         return RedirectToAction("Index");
     }
     return View(category);
 }
コード例 #2
0
ファイル: CategoryService.cs プロジェクト: romeohuy/RH-CMS
 public void Update(Category entity)
 {
     _categoryRepository.Update(entity);
 }
コード例 #3
0
ファイル: CategoryService.cs プロジェクト: romeohuy/RH-CMS
 public void Add(Category entity)
 {
     _categoryRepository.Insert(entity);
 }