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)); }
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)); }