Exemple #1
0
        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());
        }
Exemple #2
0
 // GET: BookType
 public ActionResult Index()
 {
     ViewData.Model = bll.GetEntityList(10, 1);
     return(View());
 }