public ActionResult DeleteConfirmed(int id) { RealtorDotCom realtorDotCom = (RealtorDotCom)db.CreativeSets.Find(id); db.CreativeSets.Remove(realtorDotCom); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "CreativeSetID,SpecialInstructions,Valid,ScreenShotUrl,CreativeImageURL,CreativeLandingPageURL")] RealtorDotCom realtorDotCom) { if (ModelState.IsValid) { db.Entry(realtorDotCom).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(realtorDotCom)); }
// GET: RealtorDotComs/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } RealtorDotCom realtorDotCom = (RealtorDotCom)db.CreativeSets.Find(id); if (realtorDotCom == null) { return(HttpNotFound()); } return(View(realtorDotCom)); }