Exemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "Id,OkulName")] tblOkullar tblOkullar)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tblOkullar).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tblOkullar));
 }
Exemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "HocaID,HocaName,HocaSurname,HocaMail")] tblHocalar tblHocalar)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tblHocalar).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tblHocalar));
 }
Exemplo n.º 3
0
        public ActionResult Edit([Bind(Include = "Id,Name")] tblFakulteler tblFakulteler)
        {
            if (ModelState.IsValid)
            {
                db.Entry(tblFakulteler).State = EntityState.Modified;
                db.SaveChanges();
                // return RedirectToAction("Index");
                ViewBag.Mesaj = "İşembaşarılı";

                return(View(tblFakulteler));
            }
            return(View(tblFakulteler));
        }