예제 #1
0
 //
 // GET: /Employees/List?terms=Mar
 public JsonNetResult List(ApplicantSearchParameters searchParameters)
 {
     var query = new SearchApplicants(searchParameters);
     var results = Query(query);
     return Json(new
     {
         Items = results,
         Skipped = searchParameters.Skip,
         TotalResults = query.Stats.TotalResults
     });
 }
예제 #2
0
 //
 // GET: /Applicants/
 public ViewResult Index(ApplicantSearchParameters searchParameters)
 {
     ViewBag.EventTypes = Query(new GetEventTypesQuery());
     return View(searchParameters);
 }
예제 #3
0
 public SearchApplicants(ApplicantSearchParameters parameters)
 {
     Parameters = parameters;
 }