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

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

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