示例#1
0
        public async Task <IActionResult> Delete(int id)
        {
            await _detailService.DeleteAsync(id);

            return(NoContent());
        }
示例#2
0
        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));
 }