public SignatureTemplateResponse ModifyTemplate(string templateId, SignatureTemplateSettings settings) { var template = SignatureApiUriTemplates.BuildUriTemplate(SignatureApiUriTemplates.Template); var parameters = new NameValueCollection { { "userId", UserId }, { "templateId", templateId } }; using (var content = HttpContentNetExtensions.CreateJsonNetDataContract(settings)) { var response = SubmitRequest <SignatureTemplateResponse>(template, parameters, "POST", content); return(response); } }
public SignatureTemplateResponse ModifyTemplate(string templateId, SignatureTemplateSettings settings) { var template = SignatureApiUriTemplates.BuildUriTemplate(SignatureApiUriTemplates.Template); var parameters = new NameValueCollection { { "userId", UserId }, { "templateId", templateId } }; using (var content = HttpContentNetExtensions.CreateJsonNetDataContract(settings)) { var response = SubmitRequest<SignatureTemplateResponse>(template, parameters, "POST", content); return response; } }