internal static object Post <T>(this IPomonaClient client, string uri, Action <T> postAction, RequestOptions options)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }
            var postForm = (T)client.TypeMapper.CreatePostForm(typeof(T));

            postAction(postForm);
            return(client.Post(uri, postForm, options));
        }
Exemple #2
0
 public virtual TPostResponseResource Post(IPostForm form)
 {
     return((TPostResponseResource)Client.Post(Uri, (TResource)((object)form), null));
 }