using Microsoft.EntityFrameworkCore; using MTWorkHR.Core.Entities; using MTWorkHR.Core.IRepositories; using MTWorkHR.Infrastructure.DBContext; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MTWorkHR.Infrastructure.Repositories { public class PermissionRepository : Repository, IPermissionRepository { private readonly DbSet dbSet; public PermissionRepository(HRDataContext _econtext) : base(_econtext) { dbSet = _context.Set(); } public async Task> GetAllAsList() { return await dbSet.AsQueryable().ToListAsync(); } } }