public IActionResult Delete([FromBody] long id) { ; try { studentBusiness.DeleteById(id); return(Ok()); } catch (Exception) { return(BadRequest("Não foi possível completar a requisição")); throw; } }
public IActionResult Delete([FromBody] long id) { ; try { studentBusiness.DeleteById(id); return(Ok()); } catch (Exception) { return(BadRequest("Não foi possível completar a requisição")); throw; } }