public ActionResult IndexAdmin(string id, bool role) { var vm = new AttendeeViewModel(id, role); vm.HandleRequest(); return(View("Index", vm)); }
public ActionResult Index(string id) { var vm = new AttendeeViewModel(id); vm.HandleRequest(); return(View(vm)); }
public ActionResult Index(AttendeeViewModel vm) { vm.HandleRequest(); // NOTE: Must clear the model state in order to bind // the @Html helpers to the new model values ModelState.Clear(); return(View(vm)); // return View(vm); }