public WeFactConnector(IConfiguration configuration, IRepository <Offers> offerrepository, IRepository <Estimates> estimaterepository, IRepository <EstimateLines> estimatelinesrepository) { Configuration = configuration; ApiKey = Configuration["WeFact:Key"]; ApiUrl = Configuration["WeFact:Url"]; OfferRepository = (OfferRepository)offerrepository; EstimateRepository = (EstimateRepository)estimaterepository; EstimateLinesRepository = (EstimateLinesRepository)estimatelinesrepository; }
public OfferController(IRepository <Offers> offerrepository, IRepository <Users> userrepository, IRepository <Offers> offerrepoitory, IRepository <Estimates> estimaterepository, IRepository <EstimateLines> estimatlinesrepository, IRepository <EstimateConnects> estimateconnectsrepository, IRepository <Settings> settingsrepository, IConnector wefactConnector, IHostingEnvironment env, ITemplateService templateservice, IConverter converterService) { OfferRepository = (OfferRepository)offerrepository; UserRepository = (UsersRepository)userrepository; EstimateRepository = (EstimateRepository)estimaterepository; EstimateLinesRepository = (EstimateLinesRepository)estimatlinesrepository; EstimateConnectsRepository = (EstimateConnectsRepository)estimateconnectsrepository; SettingsRepository = (SettingsRepository)settingsrepository; Wefactconnector = (WeFactConnector)wefactConnector; TemplateService = templateservice; Environment = env; ConverterService = converterService; }