Add GameVersion domain and login validation
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using RecNet.Domain.GameVersions;
|
||||
|
||||
namespace RecNet.Infrastructure.Persistence.Repositories;
|
||||
|
||||
public class GameVersionRepository(DatabaseContext dbContext) : IGameVersionRepository
|
||||
{
|
||||
public Task<GameVersion?> GetAsync(string version, CancellationToken ct = default)
|
||||
=> dbContext.GameVersions
|
||||
.FirstOrDefaultAsync(x => x.Version == version, ct);
|
||||
}
|
||||
Reference in New Issue
Block a user