Exemplo n.º 1
0
 public PerronController(IConfiguration configuration)
 {
     context          = new MSSQLPerronContext(configuration.GetConnectionString("DefaultConnection"));
     stationContext   = new MSSQLStationContext(configuration.GetConnectionString("DefaultConnection"));
     repo             = new PerronRepository(context);
     stationRepo      = new StationRepository(stationContext);
     converter        = new PerronViewModelConverter();
     stationConverter = new StationViewModelConverter();
 }
Exemplo n.º 2
0
 public PerronRepository(IPerronContext context)
 {
     Context = context;
 }