Example #1
0
 public void OnPostSeedDatabase()
 {
     if (!_context.Movie.Any())
     {
         _context.SeedDatabase();
         seedSuccesfull = true;
     }
     else
     {
         seedFailed = true;
     }
 }
Example #2
0
 public void OnPostSeedDatabase()
 {
     _context.SeedDatabase();
 }