示例#1
0
        public ActionResult AddWeer(WeerModel model)
        {
            Thread.Sleep(5000);

            if (this.ModelState.IsValid)
            {
                return(this.Content("weer info : " + model.City + ": " + model.MaxTemp));
            }
            return(this.View());
        }
示例#2
0
        public WeerModel Get()
        {
            WeerModel model = new WeerModel()
            {
                City    = "Veenendaal",
                MaxTemp = 280.5M,
                MinTemp = 275.6M
            };

            return(model);
        }
示例#3
0
        public ActionResult Hallo()
        {
            WeerModel weer = new WeerModel()
            {
                City    = "Ede",
                MinTemp = 276.597M,
                MaxTemp = 276.597M
            };

            return(this.View(weer));
        }
示例#4
0
 public void Post(WeerModel model)
 {
 }