Files
LeafWeb/Web/Controllers/LeafOutputController.cs
T
poprhythm 05b2bfefb1 Display results from Piscal processing
Error handling for Piscal processing
2016-03-07 11:47:55 -05:00

19 lines
393 B
C#

using System.Linq;
using System.Web.Mvc;
using LeafWeb.Web.ViewModels.LeafOutput;
namespace LeafWeb.Web.Controllers
{
public class LeafOutputController : ControllerBase
{
public ActionResult Index()
{
var viewModel =
DataService.GetLeafInputFiles()
.OrderByDescending(f => f.Id)
.ToList()
.Select(f => new LeafOutputViewModel(f));
return View(viewModel);
}
}
}