mirror of
https://gitea.tendokyu.moe/Kayori/Medusa.net.git
synced 2026-09-26 08:18:01 +03:00
17 lines
446 B
C#
17 lines
446 B
C#
using Abstractions.Entities;
|
|
using Abstractions.Services;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace Server.Services
|
|
{
|
|
public class UserService(AppDbContext context) : IUserService
|
|
{
|
|
public Task<User?> GetUserByKonamiId(string konamiId)
|
|
{
|
|
return context.Users
|
|
.Include(u => u.Cards)
|
|
.FirstOrDefaultAsync(u => u.Cards.Any(c => c.KonamiId == konamiId));
|
|
}
|
|
}
|
|
}
|