using Flurl.Http.Content; namespace Piwigo.Client; internal static class CapturedMultipartContentExtensions { public static CapturedMultipartContent AddMethod(this CapturedMultipartContent part, string piwigoMethod) { if (string.IsNullOrWhiteSpace(piwigoMethod)) { throw new ArgumentException("Value cannot be null or whitespace.", nameof(piwigoMethod)); } return part.AddString("method", piwigoMethod); } }