static ProductosAppService GetAppService() { ProductosDomainServices domainService = new ProductosDomainServices(); DbContext dbContext = new ProductosDbContext(); IRepository <Productos> repository = new Repository <Productos>(dbContext); return(new ProductosAppService(repository, domainService)); }
public ProductosController() { ProductosDomainServices domainService = new ProductosDomainServices(); DbContext dbContext = new ProductosDbContext(); IRepository <Productos> repository = new Repository <Productos>(dbContext); _productoAppService = new ProductosAppService(repository, domainService); }
public UsuariosController(IPasswordHasher passwordHasher, ProductosDbContext context) { _passwordHasher = passwordHasher; _context = context; }
public ProductosController(ProductosDbContext context) { _context = context; }
public ProductosController(ProductosDbContext context) { _context = context; _imageHandler = new ImageHandler(); }