public IEnumerable <SituacaoCarteiraClientes> SituacaoCarteiraClientes() { using (var conexao = new ConexaoSqlServer().AbrirConexao()) { IEnumerable <SituacaoCarteiraClientes> retorno; retorno = conexao.Query <SituacaoCarteiraClientes>(RelatoriosClienteProcedures.SituacaoCarteiraClientes .GetDescription(), commandType: CommandType.StoredProcedure); return(retorno); } }
public IEnumerable <VendaRankingVendedor> RankingVendedores(int mes, int ano) { using (var conexao = new ConexaoSqlServer().AbrirConexao()) { IEnumerable <VendaRankingVendedor> retorno; retorno = conexao.Query <VendaRankingVendedor>(RelatoriosVendaProcedures.RankingVendedores.GetDescription(), new { @mes = mes, @ano = ano }, commandType: CommandType.StoredProcedure); return(retorno); } }
public IEnumerable <VendaPorPeriodo> PorPeriodo(DateTime dataEmissaoInicio, DateTime dataEmissaoFim) { using (var conexao = new ConexaoSqlServer().AbrirConexao()) { IEnumerable <VendaPorPeriodo> retorno; retorno = conexao.Query <VendaPorPeriodo>(RelatoriosVendaProcedures.PorPeriodo.GetDescription(), new { @dataEmissaoInicio = dataEmissaoInicio, @dataEmissaoFim = dataEmissaoFim }, commandType: CommandType.StoredProcedure); return(retorno); } }