public async Task <IActionResult> DeleteLanguage(int id)
        {
            var isDeleted = await _languageBusiness.DeleteLanguage(id);

            if (isDeleted)
            {
                var result = await _languageBusiness.GetAllLanguages();

                return(Ok(result));
            }
            return(NoContent());
        }
Beispiel #2
0
        public async Task <IActionResult> Delete(int id)
        {
            await _languageBusiness.DeleteLanguage(id);

            return(RedirectToAction("Index"));
        }