Exemplo n.º 1
0
        public ActionResult RoleEdit(string guid = "")
        {
            Role role = new Role();

            if (!string.IsNullOrWhiteSpace(guid))
            {
                role = _roleFactory.GetRole(guid);
            }
            ViewBag.permissions = PermissionFactory.GetPermissions();
            return(View(role));
        }