コード例 #1
0
        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));
        }
コード例 #2
0
        public void UpdateAccomodatie(DataContract.Contract.Accomodatie contact)
        {
            var repo = new Repository.Accomodatie();

            repo.UpdateAccomodatie(contact);
        }
コード例 #3
0
 public void UpdateAccomodatie(DataContract.Contract.Accomodatie contact)
 {
     this.UpdateAccomodatie(contact);
 }