public async Task<IndividualCategoryResponse> UpdateCategoryAsync(Category category) { var body = new { category }; return await GenericPutAsync<IndividualCategoryResponse>(string.Format("categories/{0}.json", category.Id), body); }
public IndividualCategoryResponse UpdateCategory(Category category) { var body = new { category }; return GenericPut<IndividualCategoryResponse>(string.Format("categories/{0}.json", category.Id), body); }
public async Task<IndividualCategoryResponse> CreateCategoryAsync(Category category) { var body = new { category }; return await GenericPostAsync<IndividualCategoryResponse>(string.Format("categories.json"), body); }
public IndividualCategoryResponse CreateCategory(Category category) { var body = new {category}; return GenericPost<IndividualCategoryResponse>(string.Format("categories.json"), body); }