public ActionResult Edit([Bind(Include = "id,land,stad,provincie,straat,postcode,telefoonnummer,email,gebruikerid,resortid")] Models.AdresModel data) { if (ModelState.IsValid) { IMapper mapper = Mapping.Config.ConfigMapping.Configureer(); var content = mapper.Map <DataContract.Contract.Adres>(data); var client = new ServiceClient(); client.UpdateAdres(content); return(RedirectToAction("Index")); } return(View(data)); }
public AdresViewModel(string adresEmail, bool aktywnyEmail, bool zaznaczenieEmail, bool wyswietlenieEmail) { model = new Models.AdresModel(adresEmail, aktywnyEmail, zaznaczenieEmail, wyswietlenieEmail); }
public AdresViewModel(Models.AdresModel adres) { model = adres; }
// GET: Adres/Create public ActionResult Create() { var model = new Models.AdresModel(); return(View(model)); }