示例#1
0
 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);
 }
示例#2
0
        public ActionResult Create(DataObjectEditViewModel<Zetbox.App.Test.PropertyEnumTest> vmdl)
        {
            Validate();
            if (ModelState.IsValid)
            {
                DataContext.SubmitChanges();
                return RedirectToAction("Index");
            }

            return View(vmdl);
        }
示例#3
0
 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);
     }
 }