public static string BuildUrl(string rootApiRoute, object model)
        {
            var url   = rootApiRoute;
            var extra = QueryStringBuilder.GetQueryString(model);

            if (extra != null)
            {
                url += "?" + extra;
            }

            return(url);
        }
예제 #2
0
        public string BuildProjectPhotoUrl(ProjectPhotoFilter model)
        {
            var url   = $"projects/{model.ProjectId}/photos";
            var extra = QueryStringBuilder.GetQueryString(model);

            if (extra != null)
            {
                url += "?" + extra;
            }

            return(url);
        }