Ejemplo n.º 1
0
        public async Task <Product> AddAsync(AddEditProduct product)
        {
            var addProduct = await _client.PostAsync <AddEditProduct, Response <Product> >("products/add", product);

            return(addProduct.Result);
        }
Ejemplo n.º 2
0
        public async Task <Category> AddAsync(Category category)
        {
            var response = await _client.PostAsync <Category, Response <Category> >("categories/add", category);

            return(response.Result);
        }