public async Task <ActionResult> GetIdioms() { try { return(Ok(await idiomRepository.GetIdioms())); } catch (DbUpdateException Ex) { return(StatusCode(StatusCodes.Status500InternalServerError, Ex.InnerException.Message)); } }