Example #1
0
        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));
        }
Example #2
0
        // GET: Team
        public ActionResult Index()
        {
            var leagues = _leagueBl.GetAll();

            ViewBag.Leagues = leagues;
            var teams = _teamBl.GetAll();

            return(View(teams));
        }
Example #3
0
 // GET: Result
 public ActionResult Fixtures()
 {
     ViewBag.Leagues = _leagueBl.GetAll();
     return(View());
 }
Example #4
0
        // GET: League
        public ActionResult Index()
        {
            var leagues = _leagueBl.GetAll();

            return(View(leagues));
        }