public async Task <ActionResult> DeleteTodo(string id) { var isDeleted = await todosService.DeleteTodo(id); if (isDeleted == false) { return(BadRequest()); } return(Ok()); }
public void Delete(string id) { todos.DeleteTodo(id); }