public SimulatedLoanViewModel Calculate(SimulateViewModel prospect)
        {
            SimulatedLoanViewModel model = new SimulatedLoanViewModel();

            model.AmountFinanced = prospect.LoanAmount;
            model.Method         = "Price";
            model.Quantity       = prospect.Quantity;

            model.Itens = new List <RowItemViewModel>();

            Calc(model.Itens, model.AmountFinanced, (1.5 / 100), model.AmountFinanced, model.Quantity);

            model.Installment = model.Itens.FirstOrDefault()?.Installment ?? 0;

            return(model);
        }
 public SimulatedLoanViewModel SaveProspect(SimulateViewModel prospect)
 {
     throw new System.NotImplementedException();
 }
        public ActionResult <SimulatedLoanViewModel> PostSimulate(SimulateViewModel simulate)
        {
            SimulatedLoanViewModel model = this._financingMethodService.Calculate(simulate);

            return(Ok(model));
        }