public IActionResult getNivelEstudio() { try { return(Ok(_estudianteApplicationService.getNivelEstudio())); } catch (Exception) { throw; } }
public IActionResult getNivelEstudio() { try { return(Ok(_estudianteApplicationService.getNivelEstudio())); } catch (ArgumentException ex) { return(BadRequest(this.responseHandler.getAppCustomErrorResponse(ex.Message))); } catch (Exception ex) { return(StatusCode(Constantes.HttpStatus.ErrorServer, this.responseHandler.getAppExceptionResponse())); } }