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