コード例 #1
0
 //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"));
 }