public async Task <GenericResponse> CreateDebt(DebtsAppModel createDebtsRequest)
        {
            var debt = createDebtsRequest.ToEntity();

            await _debtsServices.CreateDebtAsync(debt, DebtType.Simple);

            await _unitOfWork.CommitAsync();

            return(new GenericResponse {
                Id = debt.Id
            });
        }
        public async Task <GenericResponse> AddValuesCard(DebtsAppModel debtsAppModel, string CardName)
        {
            var debt     = debtsAppModel.ToEntity();
            var debtCard = await _cardService.LinkCard(debt, CardName);

            await _debtsService.CreateDebtAsync(debtCard, DebtType.Card);

            await _unitOfWork.CommitAsync();

            return(new GenericResponse {
                Id = debt.Id
            });
        }