Esempio n. 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            CouresMangments couresmangments = db.CouresMangments.Find(id);

            db.CouresMangments.Remove(couresmangments);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 public ActionResult Edit(CouresMangments couresmangments)
 {
     if (ModelState.IsValid)
     {
         db.Entry(couresmangments).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(couresmangments));
 }
Esempio n. 3
0
        public ActionResult Create(CouresMangments couresmangments)
        {
            if (ModelState.IsValid)
            {
                db.CouresMangments.Add(couresmangments);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(couresmangments));
        }
Esempio n. 4
0
        //
        // GET: /Default1/Delete/5

        public ActionResult Delete(int id)
        {
            CouresMangments couresmangments = db.CouresMangments.Find(id);

            return(View(couresmangments));
        }
Esempio n. 5
0
        //
        // GET: /Default1/Details/5

        public ViewResult Details(int id)
        {
            CouresMangments couresmangments = db.CouresMangments.Find(id);

            return(View(couresmangments));
        }