public async Task <IActionResult> GetAllLanguages()
        {
            var result = await _languageBusiness.GetAllLanguages();

            if (result.Any())
            {
                return(Ok(result));
            }

            return(NotFound());
        }
Beispiel #2
0
        public async Task <IActionResult> Index()
        {
            var result = await _languageBusiness.GetAllLanguages();

            return(View("Index", result));
        }