private static string GetDocumentVersion() { if (string.IsNullOrEmpty(FilesLinkUtility.DocServiceApiUrl)) { return(null); } return(DocumentServiceConnector.GetVersion()); }
public object GetDocServiceUrl(bool version) { var url = CommonLinkUtility.GetFullAbsolutePath(FilesLinkUtility.DocServiceApiUrl); if (!version) { return(url); } var dsVersion = DocumentServiceConnector.GetVersion(); return(new { version = dsVersion, docServiceUrlApi = url, }); }