public ActionResult Edit(DataObjectEditViewModel<Zetbox.App.Test.PropertyEnumTest> vmdl) { Validate(); if (ModelState.IsValid) { DataContext.SubmitChanges(); return RedirectToAction("Details", new { id = vmdl.ID }); } return View(vmdl); }
public ActionResult Create(DataObjectEditViewModel<Zetbox.App.Test.PropertyEnumTest> vmdl) { Validate(); if (ModelState.IsValid) { DataContext.SubmitChanges(); return RedirectToAction("Index"); } return View(vmdl); }
public ActionResult Create(DataObjectEditViewModel<Zetbox.App.Projekte.Projekt> vmdl) { Validate(); if (ModelState.IsValid) { DataContext.SubmitChanges(); return RedirectToAction("Details", new { id = vmdl.Object.ID }); } else { return View(vmdl); } }