public ActionResult addproduct(FormCollection Form)
 {
     product product = new product();
     product.name = Form["Name"];
     product.price = Form["Price"];
     return View(product);
 }
        public ActionResult saveupdate(product product, FormCollection Form)
        {
            product.name = Form["Name"];
            product.price = Form["Price"];
            db.product.Add(product);
            db.SaveChanges();

            return View(product);
        }
        public ActionResult updateproduct(int id)
        {
            product product = new product();
            product.id = id;

            db.product.Remove(db.product.Find(id));
            db.SaveChanges();

            return View(product);
        }
 public ActionResult saveproduct(product product)
 {
     db.product.Add(product);
     db.SaveChanges();
     return View(product);
 }