コード例 #1
0
 private IdentityResult CreateRole(ApplicationRole role)
 {
     var result = _roleManager.Value.CreateAsync(role).Result;
     return result;
 }
コード例 #2
0
        private ApplicationRole FillRole(string roleName)
        {
            var result = new ApplicationRole
            {
                Name = roleName
            };

            return result;
        }