public ActionResult Edit([Bind(Include = "id,faciliteit,resortid")] Models.FaciliteitModel data) { if (ModelState.IsValid) { IMapper mapper = Mapping.Config.ConfigMapping.Configureer(); var content = mapper.Map <DataContract.Contract.Faciliteit>(data); var client = new ServiceClient(); client.UpdateFaciliteit(content); return(RedirectToAction("Index")); } return(View(data)); }
// GET: Faciliteits/Create public ActionResult Create() { var model = new Models.FaciliteitModel(); return(View(model)); }