public Login() { userManager = new UserManager <Employee>(new UserStore <Employee>(new ApplicationDbContext())); //Conecept test: if (applicationDbContext.Users.Where(a => a.UserName.Equals(emailAdmin)).FirstOrDefault() == null) { Employee user = new Employee { UserName = emailAdmin, Email = emailAdmin, PhoneNumber = "912123456", UserAddress = "Admin Road", PostalCode = "2900-000", EmployeeNumber = "999999999", UserFullname = "Admin Full Name", UserCc = "12345678" }; DbContextHelper.AddAdmin(applicationDbContext, user, pwAdmin); } InitializeComponent(); }