static public async Task <Category> Update(Api api, int categoryId, UpdateCategoryParams data) { JObject j = await api.PutAsync(Api.Combine("categories", categoryId), null, data); return(j["category"].ToObject <Category>()); }
static public async Task <Category> Create(Api api, UpdateCategoryParams data) { JObject j = await api.PostAsync("categories", null, data); return(j["category"].ToObject <Category>()); }