Exemplo n.º 1
0
        protected override async Task <T> CreateExportableCIAsync <T>()
        {
            var exportable = await base.CreateExportableCIAsync <T>();

            if (exportable is ExportableLotteryCI lottery)
            {
                lottery.CategoryId = _categoryId.ToString();
                lottery.BonusInfo  = _bonusInfo != null ? await _bonusInfo.ExportAsync().ConfigureAwait(false) : null;

                lottery.DrawInfo = _drawInfo != null ? await _drawInfo.ExportAsync().ConfigureAwait(false) : null;

                lottery.ScheduledDraws = _scheduledDraws?.Select(s => s.ToString()).ToList();
            }
            return(exportable);
        }