12 lines
301 B
C#
12 lines
301 B
C#
using Microsoft.AspNetCore.Identity;
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace RdtClient.Data.Data;
|
|
|
|
public class UserData(DataContext dataContext)
|
|
{
|
|
public async Task<IdentityUser?> GetUser()
|
|
{
|
|
return await dataContext.Users.OrderBy(m => m.Id).FirstOrDefaultAsync();
|
|
}
|
|
}
|