Esempio n. 1
0
        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));
        }
//		[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));
        }
Esempio n. 3
0
        public IViewComponentResult Invoke(string formView)
        {
            var dto = new SearchDTO_Person()
            {
                FormView = formView
            };

            return(View(rep.Search(dto)));
        }