// GET: Parametres public ActionResult Index() { //ParametresModel param = new ParametresModel(); EurostralModels eurost = new EurostralModels(); return(View(eurost));//param); }
public ActionResult Index(EurostralModels eurost2)//(Test tests) { eurost = eurost2; DateTime dateDebut = new DateTime(2014, 12, 18); double diff = (eurost.DateCourante - dateDebut).TotalDays / 365.0; eurost.t = diff; //if (ModelState.IsValid //ViewData["Delta"] = tests.displayDelta0(tests.DateCourante); //return "le t est de " + (eurost.t).ToString(); return(RedirectToAction("DeltaEnt")); // return RedirectToAction("PrixEnt"); }