public ActionResult Search(SearchCompanyModel searchCompanyModel, int? page) { _sessionSearch.OrgaSearchSpec.PageSize = 20; if (Request["page"] != null) _sessionSearch.OrgaSearchSpec.CurrentPage = Convert.ToInt32(Request["page"]); return GetView(searchCompanyModel); }
public ActionResult Search(SearchCompanyModel searchCompanyModel) { _sessionSearch.OrgaSearchSpec.CurrentPage = 1; _sessionSearch.OrgaSearchSpec.Filter.TextSearch.Clear(); if (searchCompanyModel.SearchTerm != null) _sessionSearch.OrgaSearchSpec.Filter.TextSearch.AddTerms(searchCompanyModel.SearchTerm); return GetView(searchCompanyModel); }
public IActionResult GetEmployerListFilter([FromBody] SearchCompanyModel model) { try { var result = _profileService.GetEmployerListByFilterAsync(model);//change to filters if (result.IsCompletedSuccessfully) { return(Json(new { Success = true, Data = result.Result })); } else { return(Json(new { Success = false, Message = "No Results found" })); } } catch (MongoException e) { return(Json(new { Success = false, e.Message })); } }
public async Task <IEnumerable <TalentMatchingEmployerViewModel> > GetEmployerListByFilterAsync(SearchCompanyModel model) { //Your code here; throw new NotImplementedException(); }
private ActionResult GetView(SearchCompanyModel searchCompanyModel) { var orgas = _companyRepo.GetBy(_sessionSearch.OrgaSearchSpec); searchCompanyModel.Init(orgas, _sessionSearch.OrgaSearchSpec); return View(searchCompanyModel); }