public ActionResult Edit([Bind(Include = "id,naam,achternaam,geboortedatum")] Models.GebruikerModel data) { if (ModelState.IsValid) { IMapper mapper = Mapping.Config.ConfigMapping.Configureer(); var content = mapper.Map <DataContract.Contract.Gebruiker>(data); var client = new ServiceClient(); client.UpdateGebruiker(content); return(RedirectToAction("Index")); } return(View(data)); }
// GET: Gebruikers/Create public ActionResult Create() { var model = new Models.GebruikerModel(); return(View(model)); }