Exemplo n.º 1
0
        public WarningController(IWarningService warningService)
        {
            _warningService = warningService;
            Warning warning = new Warning {
                WarningDate = DateTime.UtcNow.AddDays(2)
            };
            var warn = _warningService.GetWarningSetting();

            if (warn == null)
            {
                _warningService.SetDefaultWarning(warning);
            }
        }