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