public ActionResult Index() { //1. Build a model. var player = db.GetAllInfo(); //2. Pass the model to the view. return(View(player)); }
public IEnumerable <BaseballPlayer> Get() { var model = db.GetAllInfo(); return(model); }
public ActionResult Index() { var model = db.GetAllInfo(); return(View(model)); }