public ActionResult VanTotWeddeResultaat(VanTotWeddeViewModel form)
 {
     if (this.ModelState.IsValid)
     {
         form.Personen = persoonService.VanTotWedde(form.VanWedde.Value, form.TotWedde.Value);
     }
     return(View("VanTotWedde", form));
 }
        public IActionResult VanTotWeddeResultaat(VanTotWeddeViewModel form)
        {
            if (this.ModelState.IsValid)
            {
                var lijst = _persoonService.VanTotWedde(
                    form.VanWedde.Value, form.TotWedde.Value);
                if (lijst.Count <= 3)
                {
                    form.Personen = lijst;
                }
                else
                {
                    this.ModelState.AddModelError("", "Te veel resultaten");
                }
            }

            return(View("VanTotWedde", form));
        }
        public ActionResult VanTotWedde()
        {
            var form = new VanTotWeddeViewModel();

            return(View(form));
        }
Beispiel #4
0
        public IActionResult VanTotWedde()
        {
            var vanTotWeddeViewModel = new VanTotWeddeViewModel();

            return(View(vanTotWeddeViewModel));
        }