private bool UpdateTask(TaskItem taskItem, ReminderTask reminderTask) { try { taskItem.Subject = reminderTask.Title; taskItem.Body = reminderTask.Notes; taskItem.DueDate = reminderTask.Due.GetValueOrDefault(); taskItem.StartDate = reminderTask.StartDate; taskItem.Complete = reminderTask.IsCompleted; if (reminderTask.IsCompleted) { taskItem.DateCompleted = reminderTask.CompletedOn.GetValueOrDefault(); } taskItem.Status = reminderTask.GetOlTaskStatus(); taskItem.Save(); return true; } catch (Exception exception) { Logger.Error(exception); return false; } }