Ejemplo n.º 1
0
        public ActionResult Index()
        {
            //1. Build a model.
            var player = db.GetAllInfo();

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

            return(model);
        }
Ejemplo n.º 3
0
        public ActionResult Index()
        {
            var model = db.GetAllInfo();

            return(View(model));
        }