我有这个控制器的创建方法
[HttpPost]
public ActionResult Create(Topic topic)
{
if (ModelState.IsValid)
{
topicRepo.Add(topic);
topicRepo.Save();
return RedirectToAction("Details", new { id = topic.ID });
}
return View(topic);
}
Run Code Online (Sandbox Code Playgroud)
这个用于编辑
[HttpPost]
public ActionResult Edit(int id, FormCollection formCollection)
{
Topic topic = topicRepo.getTopic(id);
if (ModelState.IsValid)
{
UpdateModel<Topic>(topic);
topicRepo.Save();
return RedirectToAction("Details", new { id = topic.ID });
}
return View(topic);
}
Run Code Online (Sandbox Code Playgroud)
这两种方法都使用公共部分页面(.ascx).
当我尝试创建主题但在我尝试编辑主题时不起作用时验证有效
哪里可以找到80x86注册的全名?我知道EAX意味着扩展AX.
那么,AX的含义是什么?即AX是首字母缩略词?