using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; namespace AsbCloudApp.Services { public interface ICrudService where Tdto : Data.IId { List Incledes { get; } Task DeleteAsync(int id, CancellationToken token = default); Task DeleteAsync(IEnumerable ids, CancellationToken token = default); Task> GetAllAsync(CancellationToken token = default); Task GetAsync(int id, CancellationToken token = default); Task> GetPageAsync(int skip = 0, int take = 32, CancellationToken token = default); Task InsertAsync(Tdto newItem, CancellationToken token = default); Task InsertRangeAsync(IEnumerable newItems, CancellationToken token = default); Task UpdateAsync(int id, Tdto item, CancellationToken token = default); } }