Add priority

This commit is contained in:
2017-02-01 09:41:08 -05:00
parent 0711ae0ac8
commit e3779a323c
19 changed files with 365 additions and 83 deletions
+2 -6
View File
@@ -3,7 +3,6 @@ using System.Linq;
using System.Web.Mvc;
using LeafWeb.Core.Entities;
using LeafWeb.Core.Utility;
using LeafWeb.WebCms.Models;
namespace LeafWeb.WebCms.Controllers
{
@@ -13,12 +12,9 @@ namespace LeafWeb.WebCms.Controllers
{
var dateThreshold = DateTime.Today.Subtract(TimeSpan.FromDays(90));
var viewModel =
(
from li in DataService.GetLeafInputs()
from li in DataService.GetLeafInputsOrdered()
where li.Added >= dateThreshold
orderby li.Id descending
select li
);
select li;
return View(viewModel);
}