Submit all LeafInputFiles together

This commit is contained in:
2016-03-28 10:20:50 -04:00
parent 4b2757b19a
commit 9e86b92f08
29 changed files with 353 additions and 268 deletions
+7 -7
View File
@@ -14,23 +14,23 @@ namespace LeafWeb.Web.Controllers
{
public class LeafCharterController : ControllerBase
{
public ActionResult Index(int leafInputFileId)
public ActionResult Index(int leafInputId)
{
var hasLeafOutputFile =
DataService
.GetLeafInputFile(leafInputFileId)?
.LeafOutputFiles?
.GetLeafInput(leafInputId)?
.OutputFiles?
.FirstOrDefault(f => f.IsLeafChartFile) != null;
return View(leafInputFileId);
return View(leafInputId);
}
public ActionResult LeafCharts(int leafInputFileId, int number)
public ActionResult LeafCharts(int leafInputId, int number)
{
var leafOutputFile =
DataService
.GetLeafInputFile(leafInputFileId)?
.LeafOutputFiles?
.GetLeafInput(leafInputId)?
.OutputFiles?
.FirstOrDefault(f => f.IsLeafChartFile);
if (leafOutputFile == null)