public async static Task UpsertProductsAsync(string categoryId, IEnumerable <Product> products) { await ProxyHelper.PostAsync <object>("CategoryProducts/Upsert", new { CategoryId = categoryId, Products = products }); }
public async static Task <IEnumerable <Category> > UpsertCategoriesAsync(IEnumerable <Category> categories) { return(await ProxyHelper.PostAsync <IEnumerable <Category> >("Categories/Upsert", categories)); }