public CompanyController(ICompanyAppService companyAppService, ICompanyAuthAppService companyAuthAppService, IContactAppService contactAppService, ICompanyIndustryAppService companyIndustryAppService, IUserAppService userAppService) { _companyService = companyAppService; _companyAuthAppService = companyAuthAppService; _contactAppService = contactAppService; _companyIndustryAppService = companyIndustryAppService; _userAppService = userAppService; }
public CompanyController(ICompanyAppService companyAppService, IHttpContextAccessor httpContextAccessor) { _companyAppService = companyAppService; if (httpContextAccessor.HttpContext.User.Identity.IsAuthenticated) { userName = httpContextAccessor.HttpContext.User.Identity.Name; } }
public CompanyEmployeeController(INotification iNotification, IEmployeeAppService iEmployeeAppService, UserManager <ApplicationUser> userManager, INotification notification, ICompanyAppService iCompanyAppService, IEmailService iEmailService) : base(iNotification) { _iEmployeeAppService = iEmployeeAppService; _userManager = userManager; _notification = notification; _iCompanyAppService = iCompanyAppService; _iEmailService = iEmailService; }
public CreateModel( IBusAppService busAppService, IMapper mapper, ICompanyAppService companyAppService) : base(mapper) { _busAppService = busAppService; _companyAppService = companyAppService; }
public static async void ImportClients(ICompanyAppService companyService, IProjectMetaDataService metaDataService) { var newClient = new NewCEIDGApiProd.NewDataStoreProviderClient(EndpointConfiguration.BasicHttpBinding_INewDataStoreProvider); try { var configuration = ConfigurationHelper.Get(Directory.GetCurrentDirectory(), null, true); var dateOfLastImport = metaDataService.GetDateOfLastImport(ProviderType.CEIDG); newClient.InnerChannel.OperationTimeout = TimeSpan.MaxValue; var result = await newClient.GetMigrationDataExtendedAddressInfoAsync( configuration.GetValue <string>("CEIDGApiKey"), //key null, //nip null, //regon null, //nip_sc null, //regon_sc null, //name Voivodeships, // provinces, null, //county null, //commune null, //city null, //street null, //postcode null, //date from null, //date to null, //pkd new List <int> { 1 }, //status null, //unique id dateOfLastImport == DateTime.MinValue?(DateTime?)null : dateOfLastImport, //migration date from null); //migration date to var importedCompanies = ParseCompanies(result); companyService.AddCompanies(importedCompanies, dateOfLastImport == DateTime.MinValue); metaDataService.SetDateOfLastImport(ProviderType.CEIDG, DateTime.Now); } catch (Exception ex) { ErrorLog.Save(ex); throw; } finally { if (newClient.State == CommunicationState.Faulted) { newClient.Abort(); } else { await newClient.CloseAsync(); } } }
public AccountController(SignInManager <ApplicationUser> signInManager, ILogger <LoginViewModel> logger, UserManager <ApplicationUser> userManager, ICompanyAppService iCompanyAppService, IEmailService iEmailService, IEmployeeAppService iEmployeeAppService) { _signInManager = signInManager; _logger = logger; _userManager = userManager; _iCompanyAppService = iCompanyAppService; _iEmailService = iEmailService; _iEmployeeAppService = iEmployeeAppService; }
public LayoutController(IProductAppService productAppService, ICategoryAppService categoryAppService, ICompanyAppService companyAppService, ISeoAppService seoAppService) : base(seoAppService) { _companyAppService = companyAppService; _productAppService = productAppService; _categoryAppService = categoryAppService; }
public CompanyFactory(IProvinceAppService provinceAppService, ICountryAppService countryAppService, ICompanyAppService companyAppService, IHostingEnvironment environment) { _provinceAppService = provinceAppService; _countryAppService = countryAppService; _companyAppService = companyAppService; _environment = environment; }
public OrderFactory(IOrderAppService appService, IAddressAppService addressAppService, ICustomerAppService customerAppService, ICompanyAppService companyAppService, IPaymentTypeAppService paymentTypeAppService) { _appService = appService; _addressAppService = addressAppService; _customerAppService = customerAppService; _companyAppService = companyAppService; _paymentTypeAppService = paymentTypeAppService; }
public OrderAppService( IRepository <Models.Order, Guid> repository, ICustomerAppService customerAppService, ICompanyAppService companyAppService, IPaymentTypeAppService paymentTypeAppService, IAddressAppService addressAppService, ISmtpEmailSenderConfiguration smtpConfig, ISmtpEmailSender smtpEmailSender) { _repository = repository; _customerAppService = customerAppService; _companyAppService = companyAppService; _paymentTypeAppService = paymentTypeAppService; _addressAppService = addressAppService; _smtpConfig = smtpConfig; _smtpEmailSender = smtpEmailSender; }
public IndexModel(ICompanyAppService companyAppService) { _companyAppService = companyAppService; }
public CompaniesController(ICompanyAppService companyApp) { _companyApp = companyApp; }
public CompanyController() { _companyAppService = new CompanyAppService(); }
public CompanyController(ICompanyAppService companyAppService) { this._companyAppService = companyAppService; }
public CompanyController(ICompanyAppService companyAppService, IUnitOfWork uow) : base(uow) { _companyAppService = companyAppService; }
public HealthCheckController(ICompanyAppService appService) { this.appService = appService; }
public HealthCheckController(ICompanyAppService appService, ILogger <HealthCheckController> logger) { this.appService = appService; this.logger = logger; }
public HomeController(IBannerAppService bannerAppService, ISeoAppService seoAppService, ICompanyAppService companyAppService) : base(seoAppService) { _companyAppService = companyAppService; _bannerAppService = bannerAppService; }
public CompanyAppServiceFactory(ICompanyAppService appService) { this.appService = appService; }
public CompanyController(ICompanyAppService _companyService, IProjectMetaDataService _metaDataService) { this.companyService = _companyService; this.metaDataService = _metaDataService; }
public CompaniesController(ICompanyAppService companyAppService) { _companyAppService = companyAppService; }
public CompanyController(ICompanyAppService appService) { this.appService = appService; }
public CreateModel(ICompanyAppService companyAppService, IMapper objectMapper) : base(objectMapper) { _companyAppService = companyAppService; }
public CompanyController(INotification iNotification, UserManager <ApplicationUser> userManager, INotification notification, ICompanyAppService iCompanyAppService) : base(iNotification) { _userManager = userManager; _notification = notification; _iCompanyAppService = iCompanyAppService; }
public CreateModalModel(ICompanyAppService companyAppService) { CompanyAppService = companyAppService; }
public CompanyController(ICompanyAppService companyAppService, IUserNavigationManager userNavigationManager) : base(userNavigationManager) { _companyAppService = companyAppService; }
public EditModalModel(ICompanyAppService companyAppService) { CompanyAppService = companyAppService; }
public AboutController(ISeoAppService seoAppService, ICompanyAppService companyAppService) : base(seoAppService) { _companyAppService = companyAppService; }
public CompanyAppService_Tests() { _companyAppService = Resolve<ICompanyAppService>(); }
public CompanyController(ICompanyAppService companyAppService, ICompanyService companyService) { _companyAppService = companyAppService; _companyService = companyService; }
public MenuController(ICompanyAppService companyApp) { _companyApp = companyApp; }