コード例 #1
0
 public ActionResult Edit(PlanningBlueprintViewModel viewModel)
 {
     var request = viewModel.MapTo<SavePlanningBlueprintRequest>();
     var response = _planningBlueprintService.SavePlanningBlueprint(request);
     TempData["IsSuccess"] = response.IsSuccess;
     TempData["Message"] = response.Message;
     if (viewModel.IsReviewer) {
         return RedirectToAction("Approval");
     }
     return RedirectToAction("Index");
 }
コード例 #2
0
 public ActionResult Create(PlanningBlueprintViewModel viewModel)
 {
     var request = viewModel.MapTo<SavePlanningBlueprintRequest>();
     var response = _planningBlueprintService.SavePlanningBlueprint(request);
     TempData["IsSuccess"] = response.IsSuccess;
     TempData["Message"] = response.Message;
     return RedirectToAction("Index");
 }