protected override void Seed(DbConsultantContext context) { if (!context.User.Any()) { var service = new UsersService(new Repository <User>(context)); service.Create(new User { Name = "Специалист", Login = "******", Password = PasswordHash.Encoding("12345") }); service.Create(new User { Name = "Специалист1", Login = "******", Password = PasswordHash.Encoding("12345") }); } }