public async Task <List <TEntity> > Get(Expression <Func <TEntity, bool> > getBy, params Expression <Func <TEntity, object> >[] includes)
        {
            var result = _context.Set <TEntity>().Where(getBy);

            foreach (var expression in includes)
            {
                result = result.Include(expression);
            }

            return(await result.ToListAsync());
        }
 public GenericRepository(ViamericasChallengeContext context)
 {
     _context = context;
     dbSet    = _context.Set <TEntity>();
 }