public DefaultsController(IDefaultService defaultService, IMapper mapper, ILogger <DefaultsController> logger, IStringLocalizer <ApiResponse> localizer, IStringLocalizer <Colors> localizerColors) { _defaultService = defaultService; _mapper = mapper; _logger = logger; _localizer = localizer; }
public DefaultController(IDefaultService defaultService) { this.defaultService = defaultService; }
public XmlWindowService(IFileHandler fileHandler, IDefaultService defaultService) { FileHandler = fileHandler; DefaultService = defaultService; }
public DefaultController(IDefaultService defaultManager) { _defaultManager = defaultManager; }
public HomeController(IDefaultService defaultService) { _defaultService = defaultService; }
public DefaultController(IDefaultService service) { this.service = service; }
public static async Task Initialize(DataProtKeyContext dataProtKeyContext, ApplicationDbContext aplicationDbContext, IDefaultService iDefautlService) { // Check, if db DataProtectionKeysContext is created // Check, if db ApplicationDbContext is created await dataProtKeyContext.Database.EnsureCreatedAsync(); await aplicationDbContext.Database.EnsureCreatedAsync(); // Check, if db contains any users. If db is not empty, then db has been already seeded if (aplicationDbContext.ApplicationUsers.Any()) { return; } // If empty create Admin User and App User await iDefautlService.CreateDefaultAdminUser(); await iDefautlService.CreateDefaultUser(); }
public DefaultController(ICommand command, IDefaultService service) { this.service = service; }