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"); }
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"); }