Пример #1
0
        public static string GetFilePaths(RestCommand command)
        {
            FilePaths filePaths = new FilePaths(command.LoginUser);

            filePaths.LoadByOrganizationID(command.Organization.OrganizationID);

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