public ActionResult Edit([Bind(Include = "appCode,appEnvName,appName,appPhase,appOU,appPool,appPOC,appOwner,appSnowTeam")] Application application) { if (ModelState.IsValid) { db.Entry(application).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(application)); }
public ActionResult Edit([Bind(Include = "sName,appCode,sType,sDescription,sVCPU,sRAM,sIP,sOS,sSize,sSQLVers,sNotes")] Standard standard) { if (ModelState.IsValid) { db.Entry(standard).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.appCode = new SelectList(db.Applications, "appCode", "appEnvName", standard.appCode); return(View(standard)); }
public ActionResult Edit([Bind(Include = "dCode,sName,diskCSize,diskCName,diskDSize,diskDName,diskESize,diskEName,diskFSize,diskFName,diskKSize,diskKName,diskLSize,diskLName,diskMSize,diskMName,diskPSize,diskPName,diskTSize,diskTName,diskSSize,diskSName")] Drive drive) { if (ModelState.IsValid) { _db.Entry(drive).State = EntityState.Modified; _db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.sName = new SelectList(_db.Standards, "sName", "appCode", drive.sName); return(View(drive)); }