Beispiel #1
0
        public IActionResult AddSynonym(string text)
        {
            if (!String.IsNullOrEmpty(text))
            {
                var synonym = _generalService.AddSynonym(text);
                if (synonym.IsOk())
                {
                    return(Json(""));
                }

                return(PartialView("Layout/_ErrorHandling", string.Format("Hiba a törlés során ({0} : {1})", synonym.Status, synonym.Message)));
            }
            return(PartialView("Layout/_ErrorHandling", "Hiba a törlés során!"));
        }