Пример #1
0
        public void UpdateQuestion()
        {
            var question = questionRepo.Data.FirstOrDefault(q => q.Date.Date == DateTime.Now.Date && q.State == (int)State.Idle);

            if (question != null)
            {
                questionRepo.ChangeState(question, State.Active);
            }
        }