Exemplo n.º 1
0
 /// <summary>Initializes a new instance of the <see cref="VehiculosController"/> class.</summary>
 public VehiculosController()
 {
     //TODO: Se debe enviar por inyeccion de dependencia y resolver con Windsor, adicional no olvidar quitar la referencia de Feroza.TecniPart.Infraestructura sobre este proyecto
     this.vehiculosServicios   = new VehiculosServicios(new Repository <Vehiculos>(new IocDbContext()), null);
     this.fabricantesServicios = new FabricantesServicios(new Repository <Fabricantes>(new IocDbContext()), null);
     this.marcasServicios      = new MarcasServicios(new Repository <Marcas>(new IocDbContext()), null);
 }
Exemplo n.º 2
0
 /// <summary>Initializes a new instance of the <see cref="CatalogosController"/> class.</summary>
 public CatalogosController()
 {
     //TODO: Se debe enviar por inyeccion de dependencia y resolver con Windsor, adicional no olvidar quitar la referencia de Feroza.TecniPart.Infraestructura sobre este proyecto
     this.catalogosServicios   = new CatalogosServicios(new Repository <Catalogos>(new IocDbContext()), null);
     this.vehiculosServicios   = new VehiculosServicios(new Repository <Vehiculos>(new IocDbContext()), null);
     this.sistemasServicios    = new SistemasServicios(new Repository <Sistemas>(new IocDbContext()), null);
     this.subSistemasServicios = new SubSistemasServicios(new Repository <SubSistemas>(new IocDbContext()), null);
 }