Esempio n. 1
0
 public ActionResult Create(AssumptionCategoryViewModel viewModel)
 {
     var request = viewModel.MapTo<SaveAssumptionCategoryRequest>();
     var response = _assumptionCategoryService.SaveAssumptionCategory(request);
     TempData["IsSuccess"] = response.IsSuccess;
     TempData["Message"] = response.Message;
     if (response.IsSuccess)
     {
         return RedirectToAction("Index");
     }
     return View("Create", viewModel);
 }
Esempio n. 2
0
 // GET: /AssumptionCategory/Create
 public ActionResult Create()
 {
     var viewModel = new AssumptionCategoryViewModel();
     viewModel.IsActive = true;
     return View(viewModel);
 }