Ejemplo n.º 1
0
 public async Task <ActionResult> GetLangs()
 {
     try
     {
         return(Ok(await langRepository.GetLangs()));
     }
     catch (DbUpdateException Ex)
     {
         return(StatusCode(StatusCodes.Status500InternalServerError,
                           Ex.InnerException.Message));
     }
 }