コード例 #1
0
 public async Task <ActionResult> GetIdioms()
 {
     try
     {
         return(Ok(await idiomRepository.GetIdioms()));
     }
     catch (DbUpdateException Ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError,
                           Ex.InnerException.Message));
     }
 }