public async Task <IActionResult> SubmitNewJob([Bind("Steps,Simulations,Maturity,Strike,Spot,Volatility,InterestRate")] MCEC_Jobs.Interface.MonteCarloJobSetting settings) { // TODO : call the Job service to create a new request // HACK : simulate a job insertion returned valure var job = new MCEC_Jobs.Interface.JobState() { Id = Guid.NewGuid(), Status = MCEC_Jobs.Interface.JobStatus.Submitted, LastUpdate = DateTime.UtcNow }; return(View("MonteCarloNewJob", job)); }
public async Task <IActionResult> MonteCarlo() { ViewData["Message"] = "This page will allow to initiate a new MonteCarlo job."; var mcOpt = new MCEC_Jobs.Interface.MonteCarloJobSetting() { Steps = 500, Simulations = 10000, Maturity = 1, Strike = 100, Spot = 100, Volatility = 0.30, InterestRate = 0.05 }; return(View(mcOpt)); }