Ejemplo n.º 1
0
        public async Task <IActionResult> Delete(int id)
        {
            var isSuccess = await _columnService.DeleteColumnAsync(id);

            if (!isSuccess)
            {
                return(this.BadRequestResult("删除失败!"));
            }
            return(Ok());
        }
Ejemplo n.º 2
0
 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));
     }
 }