Esempio n. 1
0
        public ActionResult Search(VerseModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View("Search"));
            }
            VerseService  vs   = new VerseService(model);
            List <string> text = vs.SearchVerses();

            return(View("SearchResults", text));
        }
Esempio n. 2
0
        public ActionResult Search(VerseModel model)
        {
            if (!ModelState.IsValid)
            {
                return(View("Index"));
            }

            VerseService  service = new VerseService(model);
            List <string> text    = service.SearchVerses();

            return(View("Results", text));
        }