namespace MyOffice.Data.Repositories.Currency; using Microsoft.EntityFrameworkCore; using Models.Currencies; using MyOffice.DbContext; public class CurrencyGlobalRepository : AppRepository, ICurrencyGlobalRepository { public CurrencyGlobalRepository(AppDbContext context) : base(context) { } public List GetAll() { return _context.CurrencyGlobals.ToList(); } public async Task> GetAllAsync(CancellationToken cancellationToken = default) { return await _context.CurrencyGlobals.ToListAsync(cancellationToken); } }