Пример #1
0
        public ActionResult Edit(AdminCategoryForm form)
        {
            if (ModelState.IsValid)
            {
                var category = Mapper.Map<Category>(form);
                _categoryService.Update(category);
                return RedirectToAction("Index");
            }

            return View(form);
        }
Пример #2
0
 public ActionResult Create()
 {
     var form = new AdminCategoryForm();
     return View(form);
 }