public void Update(Product product)
        {
            var p = this.GetByID(product.PartitionKey, product.RowKey);

            p.Name = product.Name;
            p.Price = product.Price;
            p.Category = product.Category;
            this.context.UpdateObject(p);
        }
 public ActionResult Create(Product product)
 {
     if (ModelState.IsValid) {
         productRepository.Create(product);
         productRepository.SaveChanges();
         return RedirectToAction("Index");
     } else {
         return View();
     }
 }
 public void Delete(Product product)
 {
     this.context.DeleteObject(product);
 }
 public void Create(Product product)
 {
     this.context.AddObject(this.context.TableName, product);
 }