Add search page
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user