public ActionResult OnSearch(BibleVerseModel bibleVerse)
        {
            //Call the Security Business Service authenticate method from the Login() method

            BibleVerseBusinessService service = new BibleVerseBusinessService();


            // the results of the method call is saved in local method sucess
            BibleVerseModel verse = service.Search(bibleVerse);

            if (verse != null)
            {
                //if finds verse, navigate to ResultSuccess View
                return(View("ResultSuccess", verse));
            }
            else
            {
                //if does not find, navigate to ResultFailed View
                return(View("ResultFailed"));
            }
        }
        public ActionResult OnSearchByPhrase(string phrase)
        {
            //Call the Security Business Service authenticate method from the Login() method

            BibleVerseBusinessService service = new BibleVerseBusinessService();

            List <BibleVerseModel> verses = new List <BibleVerseModel>();

            // the results of the method call is saved in local method sucess
            verses = service.SearchByPhrase(phrase);

            if (verses != null)
            {
                //if finds verse, navigate to ResultSuccess View
                return(View("VersesResult", verses));
            }
            else
            {
                //if does not find, navigate to ResultFailed View
                ViewData["message"] = "No result found. Please try again";
                return(View());
            }
        }