示例#1
0
        private void InitializeAdmin()
        {
            var roles = new List <string>();

            foreach (var role in Enum.GetValues(typeof(UserRoles)))
            {
                roles.Add(role.ToString());
            }

            RoleCreator.CreateIfDontExsist(roles);

            UserCreator.CreateUserIfDontExists("admin", "P1p1K4k4", null, roles);
        }