Пример #1
0
        public ActionResult Find(int id)
        {
            var obj    = new TravelDB();
            var record = obj.CompleteList().Find(t => t.TId == id);

            return(View(record));
        }
Пример #2
0
        //Gets all the records....
        public ActionResult Index()
        {
            var obj   = new TravelDB();
            var model = obj.CompleteList();

            return(View(model));
        }