namespace MyOffice.Data.Repositories.Item; using MyOffice.Data.Models.Items; public interface IItemGlobalRepository { ItemGlobal? Get(Guid id); ItemGlobal? GetByName(string name); Task GetByNameAsync(string name, CancellationToken cancellationToken = default); bool Add(ItemGlobal itemGlobal); Task AddAsync(ItemGlobal itemGlobal, CancellationToken cancellationToken = default); List GetAvailableToUser(Guid userId); Task> GetAvailableToUserAsync(Guid userId, CancellationToken cancellationToken = default); }