public async Task <IActionResult> GetAllLanguages() { var result = await _languageBusiness.GetAllLanguages(); if (result.Any()) { return(Ok(result)); } return(NotFound()); }
public async Task <IActionResult> Index() { var result = await _languageBusiness.GetAllLanguages(); return(View("Index", result)); }