Ejemplo n.º 1
0
 public ActionResult Edit(OutputCategoryViewModel viewModel)
 {
     var request = viewModel.MapTo<SaveOutputCategoryRequest>();
     var response = _outputCategoryService.SaveOutputCategory(request);
     TempData["IsSuccess"] = response.IsSuccess;
     TempData["Message"] = response.Message;
     if (response.IsSuccess)
     {
         return RedirectToAction("Index");
     }
     return View("Edit", viewModel);
 }
Ejemplo n.º 2
0
 public ActionResult Create()
 {
     var viewModel = new OutputCategoryViewModel();
     viewModel.IsActive = true;
     return View(viewModel);
 }