public ActionResult Create([Bind(Include = "appCode,appEnvName,appName,appPhase,appOU,appPool,appPOC,appOwner,appSnowTeam")] Application application) { if (ModelState.IsValid) { db.Applications.Add(application); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(application)); }
public ActionResult Create([Bind(Include = "sName,appCode,sType,sDescription,sVCPU,sRAM,sIP,sOS,sSize,sSQLVers,sNotes")] Standard standard) { if (ModelState.IsValid) { db.Standards.Add(standard); db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.appCode = new SelectList(db.Applications, "appCode", "appEnvName", standard.appCode); return(View(standard)); }
public ActionResult Create([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.Drives.Add(drive); _db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.sName = new SelectList(_db.Standards, "sName", "appCode", drive.sName); return(View(drive)); }