Ejemplo n.º 1
0
        public async Task <ActionResult <IEnumerable <DebtResult> > > GetDebts(int debtTypeId, int year, int month, string businessUnits, string departments)
        {
            var businessUnitsIds = GetArray <int>(businessUnits);
            var departmentsIds   = GetArray <long>(departments);

            var result = await _debtService.GetDebtsAsync(debtTypeId, year, month, businessUnitsIds, departmentsIds);

            //if (!debts.Any())
            //{
            //    return NotFound();
            //}

            return(result);
        }