コード例 #1
0
 // For injection
 public PurchasesController(SupplierProductRepository ctx)
 {
     context = ctx;
 }
コード例 #2
0
 public PurchasesController()
 {
     this.repository = new SupplierProductRepository();
 }
コード例 #3
0
        //private MapperConfiguration supConfig, prodConfig;

        public PurchasesController()
        {
            context = new SupplierProductRepository(new ProductDbContext());
            //prodConfig = new MapperConfiguration(cfg => cfg.CreateMap<Product, ProductDTO>());
            //supConfig = new MapperConfiguration(cfg => cfg.CreateMap<Supplier, SupplierDTO>());
        }