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)); }
public void REPO_FacturaRepository_GetAll_NotNull() { var repo = new FacturaRepository(); var x = repo.GetAll(300, 1); Assert.IsNotNull(x); }