//method which accesses the SearchService utility and dependent on the value received will sets the //model values to the coresponding values. public ActionResult Search(VerseModel model) { logger = new MyLogger(); SearchService service = new SearchService(); if (service.Authenticate(model)) { logger.Info("The given credentials returned a verse which exists in the database: " + model.Testament + "|" + model.Book + "|" + model.Chapter + "|" + model.Verse + "|" + model.VerseText); model = service.changeValues(model); return(View("~/Views/Search/Search.cshtml", model)); } else { logger.Info("The given credentials did not exist in the database."); model.SearchStatus = 2; return(View("~/Views/Search/Search.cshtml", model)); } }