Example #1
0
 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;
 }
Example #2
0
 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;
 }