public ActionResult Edit([Bind(Include = "id,oppervlakte,slaapkamers,autos,typeid")] DataContract.Contract.Accomodatie data) { if (ModelState.IsValid) { IMapper mapper = Mapping.Config.ConfigMapping.Configureer(); var content = mapper.Map <DataContract.Contract.Accomodatie>(data); var client = new ServiceClient(); client.UpdateAccomodatie(content); return(RedirectToAction("Index")); } return(View(data)); }
public void UpdateAccomodatie(DataContract.Contract.Accomodatie contact) { var repo = new Repository.Accomodatie(); repo.UpdateAccomodatie(contact); }
public void UpdateAccomodatie(DataContract.Contract.Accomodatie contact) { this.UpdateAccomodatie(contact); }