Example #1
0
        public ActionResult RolEkle(Rol rol)
        {
            try
            {
                rolServis.RolEkle(rol);
                return RedirectToAction("Roller");
            }
            catch (Exception ex)
            {
            }

            return View(rol);
        }
Example #2
0
 public int RolEkle(Rol rol)
 {
     db.Rol.Add(rol);
     return db.SaveChanges();
 }
Example #3
0
 public void RolDuzenle(Rol rol)
 {
     db.Entry(rol).State = EntityState.Modified;
     db.SaveChanges();
 }