Exemplo n.º 1
0
 public ActionResult AddWord(String word, String lang)
 {
     ActionResult result = null;
     dbAdapter = new Translator();
     try
     {
         dbAdapter.AddWord(word, lang);
         result = Content(succesAddWordMessage);
     }
     catch (UndefineLangException e)
     {
         //result = new HttpStatusCodeResult(500, failAddWordMessage);
         result = Content(failAddWordMessage);
     }
     return result;
 }
Exemplo n.º 2
0
 public ActionResult Recognize(String word)
 {
     dbAdapter = new Translator();
     dbAdapter.CalculatePercentReliability(word);
     return PartialView("PersentTablePartial", dbAdapter);
 }