public ActionResult Find(int id) { var obj = new TravelDB(); var record = obj.CompleteList().Find(t => t.TId == id); return(View(record)); }
//Gets all the records.... public ActionResult Index() { var obj = new TravelDB(); var model = obj.CompleteList(); return(View(model)); }