public List <Venda> ObterRelatorioDeVenda(DateTime dataInicio, DateTime dataFim) { return(_context.Set <Venda>() .Include(v => v.Consumo) .Where(v => v.DataDaVenda >= dataInicio && v.DataDaVenda <= dataFim) .ToList()); }
public RepositorioBase(FogContext context) { _dbSet = context.Set <TEntity>(); _context = context; }