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