Example #1
0
        public IEnumerable <Nationality> GetNationalities()
        {
            var _db = new DigitalID.DataAccess.DigitalIdDbContext();
            IEnumerable <Nationality> query = unitOfWork.NationalityRepository.Get();

            return(query);
        }
Example #2
0
 public GenericRepository(DigitalIdDbContext context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }