Ejemplo n.º 1
0
        public async Task CreateEventAsync(string msg, DateTime date)
        {
            Log.Information($"Creating event: {msg}, to happen at {date.ToString(BotSettings.Instance.DateTimeFormat, new CultureInfo(BotSettings.Instance.DateTimeCulture))}.");
            var eve = new Event {
                Message = msg, Date = date, Completed = false
            };

            ScheduleEvent(eve);
            await _eventDao.SaveEventAsync(eve);
        }