public IActionResult DeleteSection([FromBody] Section section) { try { var result = false; result = _classBusiness.DeleteSection(section.Id); return(Ok(result)); } catch (Exception ex) { return(BadRequest(ex)); } }