Esempio n. 1
0
        private Task CreateDefaultAdminAsync()
        {
            var santaAdmin = new SantaAdmin
            {
                UserName     = "******",
                PasswordHash = _encryptionProvider.CalculatePasswordHash("admin")
            };

            return(_userManager.CreateAsync(santaAdmin));
        }