@foreach (var item in Model){ // Loop through List with foreach <ul> <li>@Html.ActionLink(item.BookName, "GetBook1", new { item = item.BookName })</li> <li> @item.BookName</li> <li> @item.Author</li> <li> @item.Classification</li> <li> @item.Price</li> </ul> }
public ActionResult GetBook1(string item) { var booknme = new Book { BookName = item }; return View(booknme); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)