public CartController(IProductService productService, IEmailSender emailSender, IConfiguration configuration, IViewRenderService viewRenderService, IBillService billService) { _configuration = configuration; _productService = productService; _billService = billService; _emailSender = emailSender; _viewRenderService = viewRenderService; }
public PasswordRecovery(IUserRepository userRepository, IEmailService emailService, IEmailTemplateService emailTemplateService, IViewRenderService viewRenderService, IOptions <ApplicationSettings> options) { _userRepository = userRepository; _emailService = emailService; _emailTemplateService = emailTemplateService; _options = options.Value; _viewRenderService = viewRenderService; }
public ContactController(ILangService langService, IContactService contactService, IViewRenderService viewRenderService, ISettingService settingService, ISysUserService sysUserService, ITemplateService templateService, IUnitOfWorkAsync unitOfWork) { this._langService = langService; this._contactService = contactService; this._settingService = settingService; this._viewRenderService = viewRenderService; this._templateService = templateService; this._sysUserService = sysUserService; this._unitOfWork = unitOfWork; }
public ProductsController(IProductService productsService, ICategoryService categoriesService, UserManager <AppUser> userManager, IManufacturersService manufacturersService, IViewRenderService viewRenderService) { this.productsService = productsService; this.categoriesService = categoriesService; this.userManager = userManager; this.manufacturersService = manufacturersService; this.viewRenderService = viewRenderService; }
public EmailService( IOptions<SmtpConfig> appSettings, ILogger<EmailService> logger, IViewRenderService viewRenderService, IWebHostEnvironment environment) { _smtpConfig = appSettings.Value; _logger = logger; _viewRenderService = viewRenderService; _environment = environment; To = new List<MailAddress>(); }
public InvoiceController(ILogger <InvoiceController> logger, IMapper mapper, IMemoryCache memoryCache, ICrudBusinessManager businessManager, ICompanyBusinessManager companyBusinessManager, ICustomerBusinessManager customerBusinessManager, IViewRenderService viewRenderService) : base(logger, mapper) { _businessManager = businessManager; _companyBusinessManager = companyBusinessManager; _customerBusinessManager = customerBusinessManager; _viewRenderService = viewRenderService; _memoryCache = memoryCache; }
public AuthenticationController(UserManager <User> userManager, SignInManager <User> signInManager, IEmailSender emailSender, IViewRenderService viewRenderService, ICompanyService companyService, IJobSeekerService jobSeekerService) { this.userManager = userManager; this.signInManager = signInManager; this.emailSender = emailSender; this.viewRenderService = viewRenderService; this.companyService = companyService; this.jobSeekerService = jobSeekerService; }
public ContactController(IContactService contactSerivce, IViewRenderService viewRenderService, IConfiguration configuration, IEmailSender emailSender, IFeedbackService feedbackService, IHubContext <OnlineShopHub> hubContext) { _contactService = contactSerivce; _feedbackService = feedbackService; _hubContext = hubContext; _emailSender = emailSender; _configuration = configuration; _viewRenderService = viewRenderService; }
public string Render(params object[] paramiters) { if (string.IsNullOrEmpty(_htmlContent) || (GlobalContext.WebSite.EnableCache == false && (_lastRenderTime - DateTime.Now >= new TimeSpan(0, 0, _minCacheDuration)))) { _lastRenderTime = DateTime.Now; var model = PrepareViewModel(paramiters); _viewRenderService = GlobalContext.GetViewRenerService(); _htmlContent = _viewRenderService.RenderToString(ModuleController, ViewFileName, model); } return(_htmlContent); }
public ExpenseService(IExpenseRepository expenseRepository, IEmailService emailService, IExpenseCategoryRepository expenseCategoryRepository, IViewRenderService viewRenderService, IBudgetRepository budgetRepository, UserManager <AppUser> userManager) { _userManager = userManager; _expenseRepository = expenseRepository; _emailService = emailService; _expenseCategoryRepository = expenseCategoryRepository; _viewRenderService = viewRenderService; _budgetRepository = budgetRepository; }
public CareerExpertController(ClassBookModelFactory classBookModelFactory, LogsService logsService, ClassBookManagementContext context, ClassBookService classBookService, IViewRenderService viewRenderService) { _classBookModelFactory = classBookModelFactory; _logsService = logsService; _context = context; _classBookService = classBookService; _viewRenderService = viewRenderService; }
public CartController(IProductService productService, IViewRenderService viewRenderService, IEmailSender emailSender, IConfiguration configuration, IOrderService orderService, IUserService userService) { _productService = productService; _orderService = orderService; _viewRenderService = viewRenderService; _configuration = configuration; _emailSender = emailSender; _userService = userService; }
//private string merchantId = ConfigHelper.GetByKey("MerchantId"); //private string merchantPassword = ConfigHelper.GetByKey("MerchantPassword"); //private string merchantEmail = ConfigHelper.GetByKey("MerchantEmail"); public CartController(IProductService productService, IBillService billService, IViewRenderService viewRenderService, IEmailSender emailSender, IConfiguration configuration, IColorService color, ISizeService size, IHubContext <OnlineShopHub> hubContext, IProductQuantityService quantityService) { _productService = productService; _billService = billService; _viewRenderService = viewRenderService; _emailSender = emailSender; _configuration = configuration; _color = color; _size = size; _hubContext = hubContext; _quantityService = quantityService; }
public ProductsController(IProductService productService, IClientService clientService, IMemoryCache memoryCache, IViewRenderService viewRenderService, IPdfService htmlToPdfConverter, IHostingEnvironment environment) { this.productService = productService; this.clientService = clientService; this.memoryCache = memoryCache; this.viewRenderService = viewRenderService; this.htmlToPdfConverter = htmlToPdfConverter; this.environment = environment; }
public LoanController(UserManager <ApplicationUser> userManager, ILoanService loanService, ICustomerService customerService, ILookupService lookupService , IBankAccountService bankAccountService, IViewRenderService viewRenderService, IHostingEnvironment env) : base(userManager) { this.loanService = loanService; this.customerService = customerService; this.lookupService = lookupService; this.bankAccountService = bankAccountService; _viewRenderService = viewRenderService; _applicationFormDirectorypath = Path.Combine(env.ContentRootPath, "Documents/ApplicationForm"); }
public PesquisarContatosController(IViewRenderService viewRenderService, PesquisarContatosDomain pesquisarContatosDomain, UsuarioLogado usuarioLogado, ProfHabilitaRepository profHabilitaRepository, HistoricoRepository historicoRepository ) { this._viewRenderService = viewRenderService; this._pesquisarContatosDomain = pesquisarContatosDomain; this._usuarioLogado = usuarioLogado; this._profHabilitaRepository = profHabilitaRepository; this._historicoRepository = historicoRepository; }
public CartController(IProductService productService, IViewRenderService viewRenderService, IEmailSender emailSender, IConfiguration configuration, IBillService billService, UserManager <AppUser> userManager ) { _productService = productService; _billService = billService; _viewRenderService = viewRenderService; _configuration = configuration; _emailSender = emailSender; _userManager = userManager; }
public UccountController(IMapper mapper, IViewRenderService viewRenderService, IUccountBusinessManager uccountBusinessManager, ICompanyBusinessManager companyBusinessManager, ISectionBusinessManager sectionBusinessManager, IVendorBusinessManager vendorBusinessManager) { _mapper = mapper; _viewRenderService = viewRenderService; _uccountBusinessManager = uccountBusinessManager; _companyBusinessManager = companyBusinessManager; _sectionBusinessManager = sectionBusinessManager; _vendorBusinessManager = vendorBusinessManager; }
public ImageSliderWidget( IViewRenderService viewRenderService, NccWebSiteWidgetService websiteWidgetService, NccImageSliderService imageSliderService) : base( "Image Slider", "This is a widget to display responsive image slider.", "" ) { _viewRenderService = viewRenderService; _websiteWidgetService = websiteWidgetService; _imageSliderService = imageSliderService; }
public SavedReportController(IMapper mapper, IViewRenderService viewRenderService, ICompanyBusinessManager companyBusinessManager, ICrudBusinessManager businessManager, ICustomerBusinessManager customerBusinessManager, IReportBusinessManager reportBusinessManager) { _mapper = mapper; _viewRenderService = viewRenderService; _companyBusinessManager = companyBusinessManager; _businessManager = businessManager; _customerBusinessManager = customerBusinessManager; _reportBusinessManager = reportBusinessManager; }
public PlacesApiController(IOptions <MongoSettings> mongoSettings, IOptions <EmailSettings> emailSettings, IViewRenderService viewRenderService) { _MongoSettings = mongoSettings.Value; _EmailSettings = emailSettings.Value; _client = new MongoClient(_MongoSettings.MongoDbHost); _database = _client.GetDatabase(_MongoSettings.DatabaseName); _emailHelper = new EmailHelper(_EmailSettings); _imagesBucket = new GridFSBucket(_database, new GridFSBucketOptions() { BucketName = "gallery" }); this._renderService = viewRenderService; }
public CategoryWidget( IViewRenderService viewRenderService, NccWebSiteWidgetService websiteWidgetService, NccCategoryService nccCategoryService) : base( "Category", "This is a widget to display category.", "", true ) { _viewRenderService = viewRenderService; _websiteWidgetService = websiteWidgetService; _nccCategoryService = nccCategoryService; }
internal static IViewRenderService GetViewRenerService(bool newInstance = false) { if (newInstance) { return(ServiceProvider.GetService <IViewRenderService>()); } if (_viewRenderService == null) { _viewRenderService = ServiceProvider.GetService <IViewRenderService>(); } return(_viewRenderService); }
public NewsWidget( IViewRenderService viewRenderService, NccWebSiteWidgetService websiteWidgetService, NeNewsService neNewsService) : base( "News", "This is a widget to display news.", "", false ) { _viewRenderService = viewRenderService; _websiteWidgetService = websiteWidgetService; _neNewsService = neNewsService; }
public RecentCommentsWidget( IViewRenderService viewRenderService, NccWebSiteWidgetService websiteWidgetService, NccCommentsService nccCommentsService) : base( "Recent Comments", "This is a widget to display recent blog Comments.", "", true ) { _viewRenderService = viewRenderService; _websiteWidgetService = websiteWidgetService; _nccCommentsService = nccCommentsService; }
public NewsVerticalWidget( IViewRenderService viewRenderService, NccWebSiteWidgetService websiteWidgetService, NeNewsService neNewsService) : base( "Vertical News", "This is a widget to scroll news vertically.", "", false ) { _viewRenderService = viewRenderService; _websiteWidgetService = websiteWidgetService; _neNewsService = neNewsService; }
public ExpensesController( IExpenseService expenseService, IViewRenderService viewRenderService, IBudgetService budgetService, IEmailService emailService, IExpenseCategoryService expenseCategoryService, UserManager <AppUser> userManager) { _emailService = emailService; _expenseCategoryService = expenseCategoryService; _expenseService = expenseService; _budgetService = budgetService; _userManager = userManager; }
public TagCloudWidget( IViewRenderService viewRenderService, NccWebSiteWidgetService websiteWidgetService, NccTagService nccTagService) : base( "Tag Cloud", "This is a widget to display Tags Cloud.", "", true ) { _viewRenderService = viewRenderService; _websiteWidgetService = websiteWidgetService; _nccTagService = nccTagService; }
public RecentPostWidget( IViewRenderService viewRenderService, NccWebSiteWidgetService websiteWidgetService, NccPostService nccPostService) : base( "Recent Post", "This is a widget to display recent blog posts.", "", true ) { _viewRenderService = viewRenderService; _websiteWidgetService = websiteWidgetService; _nccPostService = nccPostService; }
/// <summary> /// Initializes a new instance of the <see cref="HomeController" /> class. /// </summary> /// <param name="tableCacheHandler">to store result in blob cache</param> /// <param name="homePageBusiness">Cache Data from storage</param> /// <param name="stateService">State Service</param> /// <param name="configuration">Web Config</param> /// <param name="homePageService">Home Page Service</param> /// <param name="countryService">The Country Service.</param> /// <param name="cityService">The City Service.</param> /// <param name="listingService">Listing Service</param> /// <param name="blogService">Blog Service</param> /// <param name="curationService">Curation Service</param> /// <param name="mapper">The mapper.</param> /// <param name="masterService">The master service.</param> /// <param name="domainSetting">The domain setting.</param> /// <param name="hostingEnvironment">The hosting environment.</param> /// <param name="viewRenderService">The view render service.</param> /// <param name="userDetailService">The user detail service.</param> /// <param name="package">The package.</param> /// <param name="hotelBookingService">The hotel booking service.</param> /// <param name="homeBanner">The home banner.</param> /// <param name="dealService">Deal Service</param> public HomeController(ITableCacheHandler tableCacheHandler, IHomePageBusiness homePageBusiness, IStateService stateService, IConfiguration configuration, IHomePageService homePageService, ICountryService countryService, ICityService cityService, IListingService listingService, IBlogService blogService, ICurationsService curationService, IMapper mapper, IMasterService masterService, IOptions <DomainSetting> domainSetting, IHostingEnvironment hostingEnvironment, IViewRenderService viewRenderService, IUserDetailService userDetailService, IPackageService package, IHotelBookingService hotelBookingService, IHomeBannerService homeBanner, IDealService dealService) : base(mapper, homePageService, cityService, countryService, configuration, stateService) { this.tableCacheHandler = tableCacheHandler; this.homePageBusiness = homePageBusiness; this.homePageService = homePageService; this.listingService = listingService; this.package = package; this.hostingEnvironment = hostingEnvironment; this.viewRenderService = viewRenderService; this.domainSetting = domainSetting.Value; this.masterService = masterService; this.dealService = dealService; }