public ActionResult AddWeer(WeerModel model) { Thread.Sleep(5000); if (this.ModelState.IsValid) { return(this.Content("weer info : " + model.City + ": " + model.MaxTemp)); } return(this.View()); }
public WeerModel Get() { WeerModel model = new WeerModel() { City = "Veenendaal", MaxTemp = 280.5M, MinTemp = 275.6M }; return(model); }
public ActionResult Hallo() { WeerModel weer = new WeerModel() { City = "Ede", MinTemp = 276.597M, MaxTemp = 276.597M }; return(this.View(weer)); }
public void Post(WeerModel model) { }