public ActionResult DeleteConfirmed(int id) { Cellphone_Software cellphone_Software = db.Cellphone_Software.Find(id); db.Cellphone_Software.Remove(cellphone_Software); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Name,SubCategory_Id")] Cellphone_Software cellphone_Software) { if (ModelState.IsValid) { db.Entry(cellphone_Software).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.SubCategory_Id = new SelectList(db.No_Connection, "Id", "Name", cellphone_Software.SubCategory_Id); return(View(cellphone_Software)); }
// GET: Cellphone_Software/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Cellphone_Software cellphone_Software = db.Cellphone_Software.Find(id); if (cellphone_Software == null) { return(HttpNotFound()); } return(View(cellphone_Software)); }
// GET: Cellphone_Software/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Cellphone_Software cellphone_Software = db.Cellphone_Software.Find(id); if (cellphone_Software == null) { return(HttpNotFound()); } ViewBag.SubCategory_Id = new SelectList(db.No_Connection, "Id", "Name", cellphone_Software.SubCategory_Id); return(View(cellphone_Software)); }