public void Search(string project, string app, string resource, string query, string format, int start, int limit, string sortOrder, string sortBy, string indexStyle) { try { NameValueCollection parameters = WebOperationContext.Current.IncomingRequest.UriTemplateMatch.QueryParameters; bool fullIndex = false; if (indexStyle != null && indexStyle.ToUpper() == "FULL") { fullIndex = true; } XDocument xDocument = _abstractPrivder.Search(project, app, resource, ref format, query, start, limit, sortOrder, sortBy, fullIndex, parameters); _abstractPrivder.FormatOutgoingMessage(xDocument.Root, format); } catch (Exception ex) { throw ex; } }