public IActionResult PrintAllEvents() { return(File( PrintEvents(null, out DateTime generateTime), MediaTypeNames.Application.Octet, ReportUtils.BuildFileName("Events", generateTime, OutputFormat.Xml2003))); }
public IActionResult PrintEventsByView(int viewID) { if (!viewLoader.GetView(viewID, out ViewBase view, out string errMsg)) { throw new ScadaException(errMsg); } return(File( PrintEvents(view, out DateTime generateTime), MediaTypeNames.Application.Octet, ReportUtils.BuildFileName("Events", generateTime, OutputFormat.Xml2003))); }