Publish from private repository

This commit is contained in:
Gitea Actions
2026-08-01 11:51:13 +00:00
commit 0304b03201
694 changed files with 69367 additions and 0 deletions
@@ -0,0 +1,21 @@
namespace MyOffice.Data.Repositories.Currency;
using Models.Currencies;
public interface ICurrencyRepository
{
List<Currency> GetAll(Guid userId);
Task<List<Currency>> GetAllAsync(Guid userId, CancellationToken cancellationToken = default);
Currency? Get(Guid userId, Guid id);
Task<Currency?> GetAsync(Guid userId, Guid id, CancellationToken cancellationToken = default);
Currency? GetByGlobalCurrency(Guid userId, string globalCurrencyId);
Task<Currency?> GetByGlobalCurrencyAsync(Guid userId, string globalCurrencyId, CancellationToken cancellationToken = default);
bool Add(Currency currency);
Task<bool> AddAsync(Currency currency, CancellationToken cancellationToken = default);
bool Update(Currency currency);
Task<bool> UpdateAsync(Currency currency, CancellationToken cancellationToken = default);
bool Remove(Currency currency);
Task<bool> RemoveAsync(Currency currency, CancellationToken cancellationToken = default);
List<Currency> GetPrimaries(Guid userId);
Task<List<Currency>> GetPrimariesAsync(Guid userId, CancellationToken cancellationToken = default);
}