//// If you are using Dependency Injection, you can delete the following constructor
 //public VendorProposalController() : this(new VendorProposalRepository())
 //{
 //}
 public VendorProposalController(IVendorProposalRepository vendorproposalRepository)
 {
     this.vendorproposalRepository = vendorproposalRepository; //(IVendorProposalRepository)ObjectFactory.GetInstance(typeof(IVendorProposalRepository));
 }
Beispiel #2
0
        //// If you are using Dependency Injection, you can delete the following constructor
        //public VendorProposalController() : this(new VendorProposalRepository())
        //{
        //}

        public VendorProposalController(IVendorProposalRepository vendorproposalRepository)
        {
            this.vendorproposalRepository = vendorproposalRepository;             //(IVendorProposalRepository)ObjectFactory.GetInstance(typeof(IVendorProposalRepository));
        }