private void AddReminder(DateTime startTime, int id) { var reminderTime = (startTime.AddMinutes(-15) > DateTime.Now ? startTime.AddMinutes(-15) : DateTime.Now.AddMinutes(1)); reminderService.Add(reminderTime, id); }