using System.Collections.Generic;
using System.Threading.Tasks;
using TodoList.Models;

namespace TodoList.Services
{
    public interface IDataService
    {
        Task<List<TodoItem>> LoadTasksAsync(bool? completed = null);
        Task<TodoItem> SaveTaskAsync(TodoItem task);
        Task<TodoItem> UpdateTaskAsync(TodoItem task);
        Task<TodoItem> ToggleCompleteAsync(string id);
        Task DeleteTaskAsync(string id);
    }
}
