public ActionResult ReportAssays(AssayReportViewModel m) { if (!ModelState.IsValid) { return(ReportAssays()); } m.ReportID = (uint)AllReports.ReportType.AssayReport; m.ReportExecutedByUserName = Services.WorkContext.CurrentUser.UserName; IReport r = AssayService.ReportAssays(m); m.Report = r.Report; //m.ReportID = r.ReportID; m.ParametersView = r.ParametersView; m.ReportName = r.ReportName; m.SerializedChild = r.SerializedChild; m.FilterString = r.FilterString; return(new NKD.Handlers.FileGeneratingResult(string.Format("{0}-{1}-{2}.csv", m.Project, m.ProjectID, DateHelper.NowInOnlineFormat).Trim(), "text/csv", stream => m.Report.ExportToCsv(stream))); }
public AssayController(AssayService assayService) { _assayService = assayService; }
public ActivityController(ActivityService activityService, AssayService assayService) { _activityService = activityService; _assayService = assayService; }