예제 #1
0
        public ActionResult Index()
        {
            //1. Build a model.
            var player = db.GetAllInfo();

            //2. Pass the model to the view.
            return(View(player));
        }
예제 #2
0
        public IEnumerable <BaseballPlayer> Get()
        {
            var model = db.GetAllInfo();

            return(model);
        }
예제 #3
0
        public ActionResult Index()
        {
            var model = db.GetAllInfo();

            return(View(model));
        }