Ejemplo n.º 1
0
        public static string GetReminders(RestCommand command)
        {
            Reminders reminders = new Reminders(command.LoginUser);

            reminders.LoadByOrganizationID(command.Organization.OrganizationID);

            if (command.Format == RestFormat.XML)
            {
                return(reminders.GetXml("Reminders", "Reminder", true, command.Filters));
            }
            else
            {
                throw new RestException(HttpStatusCode.BadRequest, "Invalid data format");
            }
        }