public ActionResult RolAta(string id) { ViewBag.Roller = new SelectList(Roles.GetAllRoles().ToList()); RolAta r = new RolAta(); r.KullaniciAdi = id; return(View(r)); }
public ActionResult UyeRolSil(RolAta r, string id) { Roles.RemoveUserFromRole((string)Session["RolKullaniciAdi"], id); return(RedirectToAction("Page", "Login")); }
public ActionResult RolAta(RolAta r) { Roles.AddUserToRole(r.KullaniciAdi, r.Rol); return(RedirectToAction("Home", "Login")); }