Move LeafDataQuery to it's own view

This commit is contained in:
2020-07-11 21:50:11 -04:00
parent f1691f3d53
commit 4ab050c3bd
4 changed files with 100 additions and 94 deletions
+6 -6
View File
@@ -44,14 +44,14 @@ namespace LeafWeb.WebCms.Controllers
[HttpPost]
public ActionResult Search(LeafDataQuery q)
public ActionResult Search(LeafDataQuery query)
{
if (!ModelState.IsValid)
{
return CurrentUmbracoPage();
}
return RedirectToCurrentUmbracoPage(q.GetNameValueCollection());
return RedirectToCurrentUmbracoPage(query.GetNameValueCollection());
}
private TimeInProgressEstimater TimeInProgressEstimater()
@@ -127,14 +127,14 @@ namespace LeafWeb.WebCms.Controllers
return GetOutputZip(id, LeafOutputFileType.CleanedInput);
}
public ActionResult DownloadResultsInputZip(LeafDataQuery q)
public ActionResult DownloadResultsInputZip(LeafDataQuery query)
{
return GetResults(q, LeafInput.GetInputFilesZip, $"LeafWeb_{DateTime.Now:yyyy-dd-MM--HH-mm-ss}_Input.zip");
return GetResults(query, LeafInput.GetInputFilesZip, $"LeafWeb_{DateTime.Now:yyyy-dd-MM--HH-mm-ss}_Input.zip");
}
public ActionResult DownloadResultsOutputZip(LeafDataQuery q)
public ActionResult DownloadResultsOutputZip(LeafDataQuery query)
{
return GetResults(q, LeafInput.GetOutputFilesZip_ToUser, $"LeafWeb_{DateTime.Now:yyyy-dd-MM--HH-mm-ss}_Output.zip");
return GetResults(query, LeafInput.GetOutputFilesZip_ToUser, $"LeafWeb_{DateTime.Now:yyyy-dd-MM--HH-mm-ss}_Output.zip");
}
private ActionResult GetOutputZip(int id, LeafOutputFileType type)