public static string BuildUrl(string rootApiRoute, object model) { var url = rootApiRoute; var extra = QueryStringBuilder.GetQueryString(model); if (extra != null) { url += "?" + extra; } return(url); }
public string BuildProjectPhotoUrl(ProjectPhotoFilter model) { var url = $"projects/{model.ProjectId}/photos"; var extra = QueryStringBuilder.GetQueryString(model); if (extra != null) { url += "?" + extra; } return(url); }