Exemple #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            HataYakalayanBolum hatayakalayanbolum = db.HataYakalayanBolums.Find(id);

            db.HataYakalayanBolums.Remove(hatayakalayanbolum);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemple #2
0
        //
        // GET: /HataYakalayanBolum/Delete/5

        public ActionResult Delete(int id = 0)
        {
            HataYakalayanBolum hatayakalayanbolum = db.HataYakalayanBolums.Find(id);

            if (hatayakalayanbolum == null)
            {
                return(HttpNotFound());
            }
            return(View(hatayakalayanbolum));
        }
Exemple #3
0
 public ActionResult Edit(HataYakalayanBolum hatayakalayanbolum)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hatayakalayanbolum).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(hatayakalayanbolum));
 }
Exemple #4
0
        public ActionResult Create(HataYakalayanBolum hatayakalayanbolum)
        {
            if (ModelState.IsValid)
            {
                db.HataYakalayanBolums.Add(hatayakalayanbolum);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(hatayakalayanbolum));
        }
        public ActionResult Create(HataYakalayanBolum hatayakalayanbolum)
        {
            if (ModelState.IsValid)
            {
                db.HataYakalayanBolums.Add(hatayakalayanbolum);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(hatayakalayanbolum);
        }
 public ActionResult Edit(HataYakalayanBolum hatayakalayanbolum)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hatayakalayanbolum).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(hatayakalayanbolum);
 }