Пример #1
0
 async public Task <Post> CreatePost(Api api, CreatePostData data)
 {
     data.channel_id = id;
     return(await Post.Create(api, data));
 }
Пример #2
0
 static async public Task <Post> Create(Api api, CreatePostData data)
 {
     return(await api.PostAsync <Post>("posts", null, data));
 }