Пример #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            CouresMangments couresmangments = db.CouresMangments.Find(id);

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

            return(View(couresmangments));
        }
Пример #4
0
        //
        // GET: /Default1/Delete/5

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

            return(View(couresmangments));
        }
Пример #5
0
        //
        // GET: /Default1/Details/5

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

            return(View(couresmangments));
        }