public DefaultsController(IDefaultService defaultService, IMapper mapper, ILogger <DefaultsController> logger, IStringLocalizer <ApiResponse> localizer, IStringLocalizer <Colors> localizerColors)
        {
            _defaultService = defaultService;
            _mapper         = mapper;
            _logger         = logger;

            _localizer = localizer;
        }
Exemple #2
0
 public DefaultController(IDefaultService defaultService)
 {
     this.defaultService = defaultService;
 }
Exemple #3
0
 public XmlWindowService(IFileHandler fileHandler, IDefaultService defaultService)
 {
     FileHandler    = fileHandler;
     DefaultService = defaultService;
 }
Exemple #4
0
 public DefaultController(IDefaultService defaultManager)
 {
     _defaultManager = defaultManager;
 }
 public HomeController(IDefaultService defaultService)
 {
     _defaultService = defaultService;
 }
 public DefaultController(IDefaultService service)
 {
     this.service = service;
 }
Exemple #7
0
 public HomeController(IDefaultService defaultService)
 {
     _defaultService = defaultService;
 }
        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();
        }
Exemple #9
0
 public DefaultController(ICommand command, IDefaultService service)
 {
     this.service = service;
 }