Ejemplo n.º 1
0
 public ActionResult KeyWordSearch(MainPageModel model)
 {
     try
     {
         this.GuardString(model.SearchKeyWords);
         this.GuardString(model.SearchKeyWords);
         var entryLogicForSearch = UnityRegistration.Retrieve <IControllerForSearch>();
         model.OutPutMessage = entryLogicForSearch.MainLogic(model.SearchKeyWords, model.SearchEngine, model.SearchURL);
         return(this.View("Index", model));
     }
     catch (InputStringIsNullOrEmptyException ex)
     {
         model.OutPutMessage = ex.Message;
         return(this.View("Index", model));
     }
 }