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