public Details ( int id ) : System.Web.Mvc.ActionResult | ||
id | int | |
Résultat | System.Web.Mvc.ActionResult |
public ActionResult Details(int id)
{
if (id == null)
{
return new HttpStatusCodeResult(HttpStatusCode.BadRequest);
}
Book book = db.Book.Find(id);
if (book == null)
{
return HttpNotFound();
}
return View(book);
}