public async Task <Product> AddAsync(AddEditProduct product) { var addProduct = await _client.PostAsync <AddEditProduct, Response <Product> >("products/add", product); return(addProduct.Result); }
public async Task <Category> AddAsync(Category category) { var response = await _client.PostAsync <Category, Response <Category> >("categories/add", category); return(response.Result); }