public static string GetReminder(RestCommand command, int reminderID) { Reminder reminder = Reminders.GetReminder(command.LoginUser, reminderID); if (reminder.OrganizationID != command.Organization.OrganizationID) { throw new RestException(HttpStatusCode.Unauthorized); } return(reminder.GetXml("Reminder", true)); }