Files
Portfolio/src/Portfolio.Api/Services/TechnologyRepository.cs

13 lines
398 B
C#

using Microsoft.EntityFrameworkCore;
using Portfolio.Shared.Models;
using Portfolio.Shared.Services;
namespace Portfolio.Api.Services;
internal sealed class TechnologyRepository(DatabaseContext context) : ITechnologyRepository {
public async Task<IEnumerable<Technology>> GetTechnologies(CancellationToken ct) {
return await context.Technologies.ToArrayAsync(ct);
}
}