public async Task <IActionResult> Delete(int id) { await _detailService.DeleteAsync(id); return(NoContent()); }
public async Task <ActionResult <DetailDTO> > Delete(long id) { var detail = await _detailService.DeleteAsync(id); return(Ok(detail)); }
public async Task <bool> Delete(int id) { return(await detailService.DeleteAsync(id)); }