Пример #1
0
 public IndividualTopicResponse UpdateTopic(Topic topic)
 {
     var body = new { topic };
     return GenericPut<IndividualTopicResponse>(string.Format("topics/{0}.json", topic.Id), body);
 }
Пример #2
0
 public async Task<IndividualTopicResponse> UpdateTopicAsync(Topic topic)
 {
     var body = new { topic };
     return await GenericPutAsync<IndividualTopicResponse>(string.Format("topics/{0}.json", topic.Id), body);
 }
Пример #3
0
 public IndividualTopicResponse CreateTopic(Topic topic)
 {
     var body = new {topic};
     return GenericPost<IndividualTopicResponse>(string.Format("topics.json"), body);
 }
Пример #4
0
 public async Task<IndividualTopicResponse> CreateTopicAsync(Topic topic)
 {
     var body = new {topic};
     return await GenericPostAsync<IndividualTopicResponse>(string.Format("topics.json"), body);
 }