public EFEntryRepository(FitnessLogDbContext connection = null)
 {
     if (connection == null)
     {
         this.db = new FitnessLogDbContext();
     }
     else
     {
         this.db = connection;
     }
 }
Beispiel #2
0
 public EntryController(FitnessLogDbContext fitnessLogContext)
 {
     _fitnessLogDbContext = fitnessLogContext;
 }
 public UserController(FitnessLogDbContext fitnessLogContext)
 {
     _fitnessLogDbContext = fitnessLogContext;
 }