public ActionResult RolEkle(Rol rol) { try { rolServis.RolEkle(rol); return RedirectToAction("Roller"); } catch (Exception ex) { } return View(rol); }
public int RolEkle(Rol rol) { db.Rol.Add(rol); return db.SaveChanges(); }
public void RolDuzenle(Rol rol) { db.Entry(rol).State = EntityState.Modified; db.SaveChanges(); }