Beispiel #1
0
 public ActionResult CreateOrUpdateCategory(CategoryEditViewModel categoryEditViewModel)
 {
     Category category = Mapper.Map<Category>(categoryEditViewModel);
     _categoryService.Create(category);
     return RedirectToAction("Index");
 }
Beispiel #2
0
 public ActionResult EditCategory()
 {
     CategoryEditViewModel categoryEditViewModel = new CategoryEditViewModel();
     return View(categoryEditViewModel);
 }