public ActionResult BuildReport([ModelBinder(typeof(BaseReportFormModelBinder))] BaseReportForm form) { var reportStrategy = ReportsFactory.GetReportStrategy(form, _mapper); var reportLink = reportStrategy.BuildReport(); return(View("~/Views/TicketsAdmin/Reports/DownloadReport.cshtml", model: reportLink)); }
public ActionResult BuildReport([ModelBinder(typeof(BaseReportFormModelBinder))] BaseReportForm form)//modelbinder используется для получения нужной модели { var reportStrategy = ReportsFactory.GetReportStrategy(form, _mapper); var reportLink = reportStrategy.BuildReport(); return(View("~/Views/Tickets/Reports/DownloadReports.cshtml", model: reportLink)); }