Ejemplo n.º 1
0
        public static string GetActionLogs(RestCommand command)
        {
            ActionLogs actionLogs = new ActionLogs(command.LoginUser);

            actionLogs.LoadByOrganizationID(command.Organization.OrganizationID);

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