using NG_2023_Kanban.DataLayer.DbStartup; using NG_2023_Kanban.DataLayer.Entities; using NG_2023_Kanban.DataLayer.Interfaces; using Microsoft.EntityFrameworkCore; namespace NG_2023_Kanban.DataLayer.Repositories; public class UserRepository : BaseRepository, IUserRepository { public UserRepository(DatabaseContext context) : base(context) { } public async Task> GetAllAsync() => await _context.Set().Select(x => x). Include(x => x.Boards). Include(x => x.CardsAssigned). Include(x => x.CardsSent). Include(x => x.Comments). Include(x => x.Roles). ToListAsync(); public async Task GetAsync(int id) => await _context.Set(). Include(x => x.Boards). Include(x => x.CardsAssigned). Include(x => x.CardsSent). Include(x => x.Comments). Include(x => x.Roles). FirstAsync(x => x.Id == id); }