public ActionResult DeleteConfirmed(int id) { vwFullAdItem vwfulladitem = db.vwFullAdItem.Find(id); db.vwFullAdItem.Remove(vwfulladitem); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit(vwFullAdItem vwfulladitem) { if (ModelState.IsValid) { db.Entry(vwfulladitem).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vwfulladitem)); }
// // GET: /Default1/Edit/5 public ActionResult Edit(int id = 0) { vwFullAdItem vwfulladitem = db.vwFullAdItem.Find(id); if (vwfulladitem == null) { return(HttpNotFound()); } return(View(vwfulladitem)); }
public ActionResult Create(vwFullAdItem vwfulladitem) { if (ModelState.IsValid) { db.vwFullAdItem.Add(vwfulladitem); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(vwfulladitem)); }