Beispiel #1
0
    public ActionResult Index()
    {
        var vm = new ContainsADropdownViewModel();

        vm.RawOptions = GetCrimsDetails();     // read from backend
        return(View("Index", vm));
    }
Beispiel #2
0
    public ActionResult Index(ContainsADropdownViewModel vm)
    {
        var optionChosenByUser = vm.Selected;

        // process form, send HTTP 200 OK or whatever
        return(new HttpStatusCodeResult(HttpStatusCode.OK));
    }