Add search page

This commit is contained in:
2020-07-16 14:52:49 -04:00
parent c8e9a65f70
commit ef7e2c5ae6
8 changed files with 72 additions and 13 deletions
+11 -1
View File
@@ -3,12 +3,22 @@ using System.Linq;
using System.Web.Mvc;
using LeafWeb.Core.Entities;
using LeafWeb.Core.Utility;
using Umbraco.Web.Mvc;
namespace LeafWeb.WebCms.Controllers
{
public class ResultsController : BaseController
{
public ActionResult Index()
[MemberAuthorize(AllowGroup = "Authenticated")]
public ActionResult Search()
{
var viewModel =
from li in DataService.GetLeafInputsOrdered()
select li;
return View(viewModel);
}
public ActionResult Recent()
{
var dateThreshold = DateTime.Today.Subtract(TimeSpan.FromDays(90));
var viewModel =