Add GameVersion domain and login validation
This commit is contained in:
12
RecNet.Domain/GameVersions/IGameVersionRepository.cs
Normal file
12
RecNet.Domain/GameVersions/IGameVersionRepository.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
namespace RecNet.Domain.GameVersions;
|
||||
|
||||
public interface IGameVersionRepository
|
||||
{
|
||||
Task<GameVersion?> GetAsync(string version, CancellationToken ct = default);
|
||||
|
||||
async Task<bool> IsValidAsync(string version, CancellationToken ct = default)
|
||||
{
|
||||
var gameVersion = await GetAsync(version, ct);
|
||||
return gameVersion?.IsValid == true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user