public JsonResult allTranslate([FromBody] List <Lang> langs)
        {
            Lang lang1 = langs.Where(x => x.text != String.Empty).First();

            if (lang1.text != null)
            {
                langs.ForEach(x =>
                {
                    x.text = x.name != lang1.name ? CodeConverter.ConvertCode(lang1.text, lang1.name, x.name) : lang1.text;
                });
            }
            return(Json(langs, JsonRequestBehavior.AllowGet));
        }
 public JsonResult Translate([FromBody] Translang tl)
 {
     //return Json(tl.text1+$" - Переведен из языка {tl.lang1} в язык {tl.lang2}", JsonRequestBehavior.AllowGet);
     return(Json(CodeConverter.ConvertCode(tl.text1, tl.lang1, tl.lang2), JsonRequestBehavior.AllowGet));
 }