Exemplo n.º 1
0
        public ActionResult Search(Search_PersonDTO search)
        {
            ModelState.Clear();
            var refreshView = search.refreshAll;

            return(PartialView(refreshView ? "Search" : "SearchResults", Repository_person.Search(search)));
        }
Exemplo n.º 2
0
//		[OutputCache(Location = System.Web.UI.OutputCacheLocation.None)]
        public ActionResult Search(int id = 0, string formView = null, bool showAll = false, string funcRefresh = null, string funcSelect = null)
        {
            var dto = new Search_PersonDTO {
                FormView          = formView,
                funcParentRefresh = funcRefresh,
                funcParentSelect  = funcSelect
            };

            if (showAll)
            {
                dto = Repository_person.Search(dto);
            }

            return(PartialView(dto));
        }