public async Task <IActionResult> DeleteSection([FromRoute] int cvId, [FromRoute] int sectionId) { if (await _cvService.GetCVSection(cvId, sectionId) == null) { return(NotFound()); } if (await _cvService.DeleteSection(sectionId)) { return(NoContent()); } return(BadRequest()); }