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