예제 #1
0
        public decimal ObtenerUtilidad()
        {
            int iMonth   = dtFechaEnvio.Month;
            var Ganancia = Ganancias.FirstOrDefault(x => x.Key == iMonth);

            return(Ganancia.Key != 0? Ganancia.Value : 0M);
        }
예제 #2
0
        public decimal ObtenerUtilidad()
        {
            var Ganancia = Ganancias.FirstOrDefault(x => x.dtInicio.Date <= dtFechaEnvio.Date && (x.dtfin.Date >= dtFechaEnvio.Date));

            return(Ganancia != null ? Ganancia.dValor : 0M);
        }