/// <summary> /// Renders report settings page. /// </summary> /// <returns></returns> public ActionResult Report() { var viewManager = new ReportSettingsViewManager(GetCurrentUser(), SessionHandler.MySettings); PresentationReportViewModel model = viewManager.CreatePresentationReportViewModel(); return(View(model)); }
public PartialViewResult ReportSummary() { try { ReportSettingsViewManager viewManager = new ReportSettingsViewManager(GetCurrentUser(), SessionHandler.MySettings); PresentationReportViewModel model = viewManager.CreatePresentationReportViewModel(); return(PartialView("ReportSummary", model)); } catch (Exception ex) { return(PartialView("PartialViewError", ex)); } }
public JsonNetResult UpdatePresentationReportSettings(string data) { JsonModel jsonModel; try { var javascriptSerializer = new JavaScriptSerializer(); PresentationReportViewModel reportSettingsModel = javascriptSerializer.Deserialize <PresentationReportViewModel>(data); var viewManager = new ReportSettingsViewManager(GetCurrentUser(), SessionHandler.MySettings); viewManager.UpdatePresentationReportSetting(reportSettingsModel); jsonModel = JsonModel.CreateSuccess(string.Empty); } catch (Exception ex) { jsonModel = JsonModel.CreateFailure(ex.Message); } return(new JsonNetResult(jsonModel)); }