//delete word from all words list public ActionResult DeleteWord(String word) { try { WordsService.DeleteWord(word); ViewBag.Deleted = true; Task.Run(() => LogActivities.LogWordDeleted(word)); } catch { ViewBag.Deleted = false; } return(View("Index")); }