public async Task <ActionResult> Index() { var activeDebts = debtService.GetActiveDebt(); foreach (var item in activeDebts) { CustomerDto customerDto = await customerService.GetCustomerByIdAsync(item.CustomerId).ConfigureAwait(false); item.CustomerINN = customerDto.INN; item.CustomerName = customerDto.Name; } return(View(activeDebts.Select(p => mapper.Map <DebtDto, DebtModel>(p)))); }