public ActionResult Create()
{
ViewBag.GenreId = new SelectList(db.Genres, "GenreId", "Name");
ViewBag.ArtistId = new SelectList(db.Artists, "ArtistId", "Name");
return View();
}

 

@Html.DropDownList("GenreId", String.Empty)

相关文章:

  • 2022-12-23
  • 2021-07-31
  • 2021-10-12
  • 2022-12-23
  • 2021-12-11
  • 2022-01-17
  • 2021-12-29
猜你喜欢
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案