示例#1
0
        public async Task <ActionResult> DeleteTodo(string id)
        {
            var isDeleted = await todosService.DeleteTodo(id);

            if (isDeleted == false)
            {
                return(BadRequest());
            }
            return(Ok());
        }
示例#2
0
 public void Delete(string id)
 {
     todos.DeleteTodo(id);
 }