static ProductosAppService GetAppService()
        {
            ProductosDomainServices domainService = new ProductosDomainServices();
            DbContext dbContext = new ProductosDbContext();
            IRepository <Productos> repository = new Repository <Productos>(dbContext);

            return(new ProductosAppService(repository, domainService));
        }
Example #2
0
        public ProductosController()
        {
            ProductosDomainServices domainService = new ProductosDomainServices();
            DbContext dbContext = new ProductosDbContext();
            IRepository <Productos> repository = new Repository <Productos>(dbContext);

            _productoAppService = new ProductosAppService(repository, domainService);
        }
Example #3
0
 public UsuariosController(IPasswordHasher passwordHasher, ProductosDbContext context)
 {
     _passwordHasher = passwordHasher;
     _context        = context;
 }
 public ProductosController(ProductosDbContext context)
 {
     _context = context;
 }
Example #5
0
 public ProductosController(ProductosDbContext context)
 {
     _context      = context;
     _imageHandler = new ImageHandler();
 }