using Wishlist.Data; using Wishlist.Models; using Microsoft.EntityFrameworkCore; namespace Wishlist.Services; public class RoleService { private readonly ApplicationDbContext _context; public RoleService(ApplicationDbContext context) { _context = context; } public Task> GetAllRolesAsync() { return _context.ApplicationRoles.ToListAsync(); } public Task> GetAllRoleswithClaimsAsync() { return _context.ApplicationRoles.Include(x => x.RoleClaims).ToListAsync(); } }