My code here, I want only product.name being updated. How do I do this ?
p/s: Give me many ways to do this
public ActionResult EditProduct(Product product)
{
if (ModelState.IsValid)
{
db.Entry(product).State = EntityState.Modified;
db.SaveChanges();
}
return View();
}