public ActionResult PvWithPandN(IEnumerable<double> cashFlows, double P, long N, bool repeat, long repeatCount)
 {
     double y = PV.PvWithPandN(cashFlows, P, N, repeat, repeatCount);
     ResultsViewModel model = new ResultsViewModel()
     {
         Title = "Results for PV with Cash Flows and P for N periods",
         Parameters = new Dictionary<string,object>()
         {
             {"P", P},
             {"N", N},
         },
         ResultKey = "y",
         ResultValue = y
     };
     return View("../Results/Index", model);
 }
 public ActionResult AnnuityWithCandyandN(double C, double y, long N)
 {
     double P = Annuity.AnnuityWithCandyandN(C, y, N);
     ResultsViewModel model = new ResultsViewModel()
     {
         Title = "Results for Annuity with C and y for N periods",
         Parameters = new Dictionary<string,object>()
         {
             {"C", C},
             {"y", y},
             {"N", N},
         },
         ResultKey = "P",
         ResultValue = P
     };
     return View("../Results/Index", model);
 }
 public ActionResult PvWithyAndMm(IEnumerable<double> cashFlows, double y, long M, long littleM, bool repeat, long repeatCount)
 {
     double P = PV.PvWithyAndMm(cashFlows, y, M, littleM, repeat, repeatCount);
     ResultsViewModel model = new ResultsViewModel()
     {
         Title = "Results for PV with Cash Flows and y for periods M/m",
         Parameters = new Dictionary<string,object>()
         {
             {"y", y},
             {"M", M},
             {"m", littleM},
         },
         ResultKey = "P",
         ResultValue = P
     };
     return View("../Results/Index", model);
 }
 public ActionResult AnnuityWithPandCandMm(double P, double C, long M, long littleM)
 {
     double y = Annuity.AnnuityWithPandCandMm(P, C, M, littleM);
     ResultsViewModel model = new ResultsViewModel()
     {
         Title = "Results for Annuity with P and C for periods M/m",
         Parameters = new Dictionary<string,object>()
         {
             {"P", P},
             {"C", C},
             {"M", M},
             {"m", littleM},
         },
         ResultKey = "y",
         ResultValue = y
     };
     return View("../Results/Index", model);
 }
 public ActionResult BondWithCandyandMm(double F, double C, double y, long M, long littleM)
 {
     double P = Bond.BondWithCandyandMm(F, C, y, M, littleM);
     ResultsViewModel model = new ResultsViewModel()
     {
         Title = "Results for Bond with F, C, and y for periods M/m",
         Parameters = new Dictionary<string,object>()
         {
             {"F", F},
             {"C", C},
             {"y", y},
             {"M", M},
             {"m", littleM},
         },
         ResultKey = "P",
         ResultValue = P
     };
     return View("../Results/Index", model);
 }
 public ActionResult BondWithPandCandN(double F, double P, double C, long N)
 {
     double y = Bond.BondWithPandCandN(F, P, C, N);
     ResultsViewModel model = new ResultsViewModel()
     {
         Title = "Results for Bond with F, P, and C for N periods",
         Parameters = new Dictionary<string,object>()
         {
             {"F", F},
             {"P", P},
             {"C", C},
             {"N", N},
         },
         ResultKey = "y",
         ResultValue = y
     };
     return View("../Results/Index", model);
 }