public JsonResult GetLeaguesTeams() { var leagues = _leagueBl.GetAll(); var teams = _teamBl.GetAll(); //string jsonResult = JsonConvert.SerializeObject(data, Formatting.None, settings); return(Json(new { Leagues = leagues, Teams = teams }, JsonRequestBehavior.AllowGet)); }
// GET: Team public ActionResult Index() { var leagues = _leagueBl.GetAll(); ViewBag.Leagues = leagues; var teams = _teamBl.GetAll(); return(View(teams)); }
// GET: Result public ActionResult Fixtures() { ViewBag.Leagues = _leagueBl.GetAll(); return(View()); }
// GET: League public ActionResult Index() { var leagues = _leagueBl.GetAll(); return(View(leagues)); }