Example #1
0
        public IActionResult GetIngresos()
        {
            var Regs = _FacturaRepository.GetAll();


            //public static T[] FindAll<T> (T[] array, Predicate<T> match);

            var RegsDtos1 = _mapper.Map <List <ReporteMovFacDtos> >(Regs);

            decimal total = _reporteRepository.GetIngresos(RegsDtos1);

            //  RegsDtos = _reporteRepository.GetSubTotal(RegsDtos);

            return(Ok(total));
        }
Example #2
0
        public void REPO_FacturaRepository_GetAll_NotNull()
        {
            var repo = new FacturaRepository();
            var x    = repo.GetAll(300, 1);

            Assert.IsNotNull(x);
        }