//// 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)); }
//// 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)); }