示例#1
0
        public ViewResult Index()
        {
            IEnumerable <BusEntity> busList = busRepository.Display();

            ViewBag.BusDetail = busList;
            return(View());
        }
示例#2
0
        public ActionResult ViewDetails()
        {
            BusRepository           busRepository = new BusRepository();
            IEnumerable <BusEntity> bus           = busRepository.Display();

            ViewData["BusDetail"] = bus;
            return(View());
        }