Esempio n. 1
0
 public TreinRepository(ITreinContext context)
 {
     Context = context;
 }
Esempio n. 2
0
 public TreinController(IConfiguration configuration)
 {
     context   = new MSSQLTreinContext(configuration.GetConnectionString("DefaultConnection"));
     repo      = new TreinRepository(context);
     converter = new TreinViewModelConverter();
 }