private Index ( int id ) : System.Web.Mvc.ViewResult | ||
id | int | |
Résultat | System.Web.Mvc.ViewResult |
public ViewResult Index(int? id)
{
Album album = AlbumServices.FindEntityByIdentity(id);
if (album == null)
{
return new NotFoundMvc.NotFoundViewResult();
}
else
{
return View(album);
}
}