BgEngine.MvcApplication.CheckForAdminUser C# (CSharp) Method

CheckForAdminUser() private method

private CheckForAdminUser ( ) : void
return void
        private void CheckForAdminUser()
        {
            var roles = CodeFirstRoleServices.GetUsersInRole(BgResources.Security_AdminRole);
             if (roles.Length == 0)
             {
                CodeFirstSecurity.CreateAccount(BgResources.Security_AdminRole, "admin", BgResources.Email_UserName, false);
                CodeFirstRoleServices.AddUsersToRoles(new string[] { "admin" }, new string[] { BgResources.Security_AdminRole, BgResources.Security_PremiumRole });
             }
        }