public ActionResult Add() { var list = new List <SelectListItem>(); foreach (var item in bookTypeBLL.GetEntityList(100, 1)) { list.Add(new SelectListItem { Text = item.TypeTitle, Value = item.TypeId.ToString() }); } ViewBag.TypeList = list; return(View()); }
// GET: BookType public ActionResult Index() { ViewData.Model = bll.GetEntityList(10, 1); return(View()); }