public IEnumerable <Nationality> GetNationalities() { var _db = new DigitalID.DataAccess.DigitalIdDbContext(); IEnumerable <Nationality> query = unitOfWork.NationalityRepository.Get(); return(query); }
public GenericRepository(DigitalIdDbContext context) { this.context = context; this.dbSet = context.Set <TEntity>(); }