public ActionResult DeleteConfirmed(long id) { tblAppVersion tblAppVersion = db.tblAppVersions.Find(id); db.tblAppVersions.Remove(tblAppVersion); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "VersionId,BuidDate,Version,UpdateMessage,Notes")] tblAppVersion tblAppVersion) { if (ModelState.IsValid) { db.Entry(tblAppVersion).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tblAppVersion)); }
public ActionResult Create([Bind(Include = "VersionId,BuidDate,Version,UpdateMessage,Notes")] tblAppVersion tblAppVersion) { if (ModelState.IsValid) { db.tblAppVersions.Add(tblAppVersion); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tblAppVersion)); }
// GET: AppVersions/Delete/5 public ActionResult Delete(long?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } tblAppVersion tblAppVersion = db.tblAppVersions.Find(id); if (tblAppVersion == null) { return(HttpNotFound()); } return(View(tblAppVersion)); }