コード例 #1
0
        static ProductosAppService GetAppService()
        {
            ProductosDomainServices domainService = new ProductosDomainServices();
            DbContext dbContext = new ProductosDbContext();
            IRepository <Productos> repository = new Repository <Productos>(dbContext);

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

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