62,074
社区成员
发帖
与我相关
我的任务
分享
public ActionResult AAA(int id)
{
IAdmProtService ps = AdmServiceFactory.AdmProtService;
var query = ps.GetCategoryList();
ViewData["Categories"] = new SelectList(query.AsEnumerable(), "CategoryID", "CategoryName");
Product p = ps.GetProByID(id);
ViewData["selected"] = p.CategoryID;
return View(p);
}
var query = ps.GetCategoryList().ToList();