public static void Init(NotesierContext context) { if (!context.Users.Any()) { context.Users.AddRange( new UserModel() { Name = "Xren", Email = "*****@*****.**", Password = Crypto.HashPassword("2286713337") } ); context.SaveChanges(); } }
public UserModelService(NotesierContext _db) { db = _db; }