예제 #1
0
 public ActionResult Create(CreatePmsConfigDetailsViewModel viewModel)
 {
     var request = viewModel.MapTo<CreatePmsConfigDetailsRequest>();
     var response = _pmsSummaryService.CreatePmsConfigDetails(request);
     TempData["IsSuccess"] = response.IsSuccess;
     TempData["Message"] = response.Message;
     return RedirectToAction("Details", "PmsSummary", new { id = response.PmsSummaryId });
 }
예제 #2
0
 public ActionResult Create(int id)
 {
     int pmsConfigId = id;
     var viewModel = new CreatePmsConfigDetailsViewModel();
     viewModel.PmsConfigId = pmsConfigId;
     viewModel.Kpis = _dropdownService.GetKpisForPmsConfigDetails(pmsConfigId).MapTo<SelectListItem>();
     viewModel.ScoringTypes = _dropdownService.GetScoringTypes().MapTo<SelectListItem>();
     return PartialView("_Create", viewModel);
 }