public IActionResult GetByYear(int year) { try { return(Ok(classBusiness.GetByYear(year))); } catch (Exception) { return(BadRequest("Não foi possível completar a requisição")); throw; } }
public IActionResult GetByYear(int year) { try { return(Ok(classBusiness.GetByYear(year))); } catch (Exception) { return(BadRequest("Não foi possível completar a requisição")); throw; } }