public ActionResult Edit([Bind(Include = "Id,Name,Display")] AomMeta aomMeta)
 {
     if (ModelState.IsValid)
     {
         db.Entry(aomMeta).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(aomMeta));
 }
Exemple #2
0
 public ActionResult Edit([Bind(Include = "Id,Name")] FieldType fieldType)
 {
     if (ModelState.IsValid)
     {
         db.Entry(fieldType).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(fieldType));
 }
 public ActionResult Edit(AomObject aomObject)
 {
     if (ModelState.IsValid)
     {
         db.Entry(aomObject).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(aomObject));
 }
 public ActionResult Edit([Bind(Include = "Id,AomMetaId,Name,FieldTypeId,Display")] AomFieldMeta aomFieldMeta)
 {
     if (ModelState.IsValid)
     {
         db.Entry(aomFieldMeta).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.AomMetaId   = new SelectList(db.AomMetas, "Id", "Name", aomFieldMeta.AomMetaId);
     ViewBag.FieldTypeId = new SelectList(db.FieldTypes, "Id", "Name", aomFieldMeta.FieldTypeId);
     return(View(aomFieldMeta));
 }
Exemple #5
0
 public ActionResult Edit([Bind(Include = "Id,PkAomMetaId,FkAomMetaId,FkAomFieldMetaId,Name,PkAomFieldMetaId")] RelationshipMeta relationshipMeta)
 {
     if (ModelState.IsValid)
     {
         db.Entry(relationshipMeta).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.FkAomFieldMetaId = new SelectList(db.AomFieldMetas, "Id", "Name", relationshipMeta.FkAomFieldMetaId);
     ViewBag.FkAomMetaId      = new SelectList(db.AomMetas, "Id", "Name", relationshipMeta.FkAomMetaId);
     ViewBag.PkAomFieldMetaId = new SelectList(db.AomFieldMetas, "Id", "Name", relationshipMeta.PkAomFieldMetaId);
     ViewBag.PkAomMetaId      = new SelectList(db.AomMetas, "Id", "Name", relationshipMeta.PkAomMetaId);
     return(View(relationshipMeta));
 }