private string GetQualifiedUrl(string url) { if (!string.IsNullOrEmpty(url) && !url.StartsWith("http://") && !url.StartsWith("https://") && url.IndexOf("/") > -1) { var indexOfSlash = url.IndexOf("/"); var serviceName = url.Substring(0, indexOfSlash); var qualifiedServiceName = _apiEndPoints.GetServiceProtocol() + EndpointUtil.GetQualifiedServiceName(serviceName); return(qualifiedServiceName + url.Substring(indexOfSlash)); } return(url); }