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