public IViewComponentResult Invoke(string formView) { var dto = new SearchDTO_Person() { FormView = formView }; return(View(rep.Search(dto))); }
public ActionResult Search(int id = 0, string formView = null, bool includeResults = true, string funcRefresh = null, string funcSelect = null) { var dto = new SearchDTO_Person { FormView = formView }; dto = includeResults ? _db.Search(dto) : null; return(PartialView(dto)); }
public ActionResult Search(SearchDTO_Person search) { ModelState.Clear(); return(PartialView(search.entireView ? "Search" : "SearchResults", _db.Search(search))); }