public ActionResult DeleteConfirmed(int id) { hd_statusquickship hd_statusquickship = db.hd_statusquickship.Find(id); db.hd_statusquickship.Remove(hd_statusquickship); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Descripcion")] hd_statusquickship hd_statusquickship) { if (ModelState.IsValid) { db.Entry(hd_statusquickship).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(hd_statusquickship)); }
public ActionResult Create([Bind(Include = "Id,Descripcion")] hd_statusquickship hd_statusquickship) { if (ModelState.IsValid) { db.hd_statusquickship.Add(hd_statusquickship); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(hd_statusquickship)); }
// GET: hd_statusquickship/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } hd_statusquickship hd_statusquickship = db.hd_statusquickship.Find(id); if (hd_statusquickship == null) { return(HttpNotFound()); } return(View(hd_statusquickship)); }