public override void Import(BGTouristGuideDbContext db)
        {
            PasswordHasher hasher = new PasswordHasher();

            User admin = new User
            {
                Email = "*****@*****.**",
                UserName = "******",
                FirstName = "Admin",
                LastName = "Admin",
                PasswordHash = hasher.HashPassword("admin"),
                RegistrationDate = DateTime.Now,
                SecurityStamp = Guid.NewGuid().ToString()
            };

            db.Users.Add(admin);

            IdentityUserRole adminRole = new IdentityUserRole();
            var dbadminRole = db.Roles.Where(r => r.Name == DatabaseConstants.AdminUserRole).FirstOrDefault();

            adminRole.UserId = admin.Id;
            adminRole.RoleId = dbadminRole.Id;

            dbadminRole.Users.Add(adminRole);

            db.SaveChanges();
        }
        public override void Import(BGTouristGuideDbContext db)
        {
            var roles = new string[]
            {
                DatabaseConstants.AdminUserRole,
                DatabaseConstants.RegularUserRole
            };

            foreach (var role in roles)
            {
                var dbRole = new IdentityRole();
                dbRole.Name = role;
                db.Roles.Add(dbRole);
            }

            db.SaveChanges();
        }
        public override void Import(BGTouristGuideDbContext db)
        {
            if (db.TouristSites.Any())
            {
                return;
            }

            RolesDataImporter rolesDataImporter = new RolesDataImporter();
            UsersDataImporter usersDataImporter = new UsersDataImporter();
            TouristSitesImporter touristSitesDataimporter = new TouristSitesImporter();

            rolesDataImporter.Import(db);
            usersDataImporter.Import(db);
            touristSitesDataimporter.Import(db);

            db.SaveChanges();
            db.Dispose();
        }