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