//TODO Search parameters public JsonNetResult List(JobSearchSearchParameters searchParameters) { var query = new SearchJobSearches(searchParameters); var results = Query(query); return Json(new { Items = results.Select(j => new { jobSearch = j, publicUrl = GetJobSearchPublicUrl(j) }).ToArray(), Skiped = searchParameters.Skip, TotalResults = query.Stats.TotalResults }); }
//TODO Search parameters public JsonNetResult List(JobSearchSearchParameters searchParameters) { var query = new SearchJobSearches(searchParameters); var results = Query(query); return(Json(new { Items = results.Select(j => new { jobSearch = j, publicUrl = GetJobSearchPublicUrl(j) }).ToArray(), Skipped = searchParameters.Skip, TotalResults = query.Stats.TotalResults })); }
//TODO Search parameters public JsonNetResult List(JobSearchSearchParameters searchParameters) { var query = new SearchJobSearches(searchParameters); var results = Query(query).OrderByDescending(j => j.IsPublic); return Json(new { Items = results.Select(j => new { jobSearch = j, publicUrl = GetJobSearchPublicUrl(j), Slug = j.PublicCode }).ToArray(), Skipped = searchParameters.Skip, TotalResults = query.Stats.TotalResults }); }