public async Task <IActionResult> Delete(int id) { var isSuccess = await _columnService.DeleteColumnAsync(id); if (!isSuccess) { return(this.BadRequestResult("删除失败!")); } return(Ok()); }
public async Task <IActionResult> Delete(int id) { if (await ColumnService.DeleteColumnAsync(id)) { return(NoContent()); } else { return(Problem("Column with the given id does not exist, or could not be deleted", null, 404)); } }