Ejemplo n.º 1
0
        public ActionResult ManageMyRole(string email)
        {
            //I want to determine if I am already in role...

            var myCurrentRole = roleHelper.ListEmailRoles(email).FirstOrDefault();

            ViewBag.Roles = new SelectList(db.Roles.ToList(), "Name", "Name", myCurrentRole);
            return(View());
        }