public ActionResult DeleteConfirmed(int id) { CouresMangments couresmangments = db.CouresMangments.Find(id); db.CouresMangments.Remove(couresmangments); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit(CouresMangments couresmangments) { if (ModelState.IsValid) { db.Entry(couresmangments).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(couresmangments)); }
public ActionResult Create(CouresMangments couresmangments) { if (ModelState.IsValid) { db.CouresMangments.Add(couresmangments); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(couresmangments)); }
// // GET: /Default1/Delete/5 public ActionResult Delete(int id) { CouresMangments couresmangments = db.CouresMangments.Find(id); return(View(couresmangments)); }
// // GET: /Default1/Details/5 public ViewResult Details(int id) { CouresMangments couresmangments = db.CouresMangments.Find(id); return(View(couresmangments)); }