2012年12月10日

Asp.Net MVC4.0 官方教程 入门指南之十--查看Detail和Delete方法

摘要: 在这部分的教程中,您将查看自动生成的Detail方法和Delete方法。打开Movie控制器,查看Detail方法 public ActionResult Details(int id = 0) { Movie movie = db.Movies.Find(id); if (movie == null) { return HttpNotFound(); } return View(movie); }代码先行(Cod... 阅读全文

posted @ 2012-12-10 11:23 大浪淘沙 阅读(7420) 评论(7) 推荐(1) 编辑

导航