public ActionResult Add(AddStopWordModel model)
        {
            SFA_SearchAPIEntities searchAPIEntities = new SFA_SearchAPIEntities();

            if (searchAPIEntities.GetStopWords().Any(x => x == model.StopWord))
            {
                ModelState.AddModelError("StopWord", AppGlobal.Language.GetText(this, "StopWordAlreadyExists", "Stop word already exists"));
            }

            if (ModelState.IsValid)
            {
                searchAPIEntities.Configuration.EnsureTransactionsForFunctionsAndCommands = false; // Cannot be in a transaction
                searchAPIEntities.AddStopWord(model.StopWord.Trim());
                ShowGenericSavedMessage();
                return(RedirectToAction("Index"));
            }

            return(View(model));
        }
        public ActionResult Add()
        {
            AddStopWordModel model = new AddStopWordModel();

            return(View(model));
        }