public ViewResult Index() { IEnumerable <BusEntity> busList = busRepository.Display(); ViewBag.BusDetail = busList; return(View()); }
public ActionResult ViewDetails() { BusRepository busRepository = new BusRepository(); IEnumerable <BusEntity> bus = busRepository.Display(); ViewData["BusDetail"] = bus; return(View()); }