Move LeafDataQuery to it's own view
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user