Added api endpoints and configured hopframe
This commit is contained in:
13
src/Portfolio.Api/Services/TechnologyRepository.cs
Normal file
13
src/Portfolio.Api/Services/TechnologyRepository.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user