Beispiel #1
0
        public ActionResult RolAta(string id)
        {
            ViewBag.Roller = new SelectList(Roles.GetAllRoles().ToList());
            RolAta r = new RolAta();

            r.KullaniciAdi = id;
            return(View(r));
        }
Beispiel #2
0
 public ActionResult UyeRolSil(RolAta r, string id)
 {
     Roles.RemoveUserFromRole((string)Session["RolKullaniciAdi"], id);
     return(RedirectToAction("Page", "Login"));
 }
Beispiel #3
0
        public ActionResult RolAta(RolAta r)
        {
            Roles.AddUserToRole(r.KullaniciAdi, r.Rol);

            return(RedirectToAction("Home", "Login"));
        }