//add word to all words list public ActionResult AddWord(String word) { if (word != null && word.Length > 1) { try { WordsService.AddNewWord(word); ViewBag.Added = true; Task.Run(() => LogActivities.LogWordAdded(word)); } catch { ViewBag.Added = false; } } return(View("Index")); }