-4
我收到一个错误,告诉我有预期的标识符?标识符预计
代码:
[HttpPost]
public ActionResult EditProduct(int id, FormCollection collection)
{
ProductRepository repo = new ProductRepository();
var product = repo.GetProductID(id);
string Pid = collection["Pid"];
string name = collection["PName"];
string type = collection["PType"];
string deal = collection.["PDeal"];
string desc = collection.["PDescription"];
string price = collection.["PPrice"];
repo.Save();
return View("index");
}
感谢的人笑!从来没有注意到他们。过了漫长的一天:( – user892239