public EntriesController()
 {
     if (AppDatabase.Entries == null)
     {
         AppDatabase.SeedDatabase();
     }
 }
Esempio n. 2
0
 public UsersController()
 {
     if (AppDatabase.Users == null)
     {
         AppDatabase.SeedDatabase();
     }
 }
 public EstablishmentsController()
 {
     if (AppDatabase.Establishments == null)
     {
         AppDatabase.SeedDatabase();
     }
 }
Esempio n. 4
0
 public TokensController()
 {
     if (TokenProvider.Tokens == null)
     {
         TokenProvider.InitializeTokenProvider();
     }
     if (AppDatabase.Users == null)
     {
         AppDatabase.SeedDatabase();
     }
 }