public ActionResult Index(int page = 1, int page_size = 15, string season_id = null, string round_id = null) { var dao = new match_dao(); var model = dao.ListMatch_BySeasonRound(ref season_id, ref round_id, page, page_size); SetListSeason(season_id); SetListRound(round_id, season_id); ViewBag.currentSeasonID = season_id; ViewBag.currentRoundID = round_id; return(View(model)); }
public ActionResult Index(int page = 1, int page_size = 15, string season_id = null, string round_id = null) { var match_dao = new match_dao(); var rank_dao = new rank_dao(); SetListSeason(season_id); SetListRound(round_id, season_id); //Lấy thứ tự ưu tiên sắp xếp BXH string sort_type1 = "", sort_type2 = "", sort_type3 = "", sort_type4 = ""; new general_rule_dao().GetSortRule(ref sort_type1, ref sort_type2, ref sort_type3, ref sort_type4); ViewBag.Match = match_dao.ListMatch_BySeasonRound(ref season_id, ref round_id, page, page_size); ViewBag.RankSeason = rank_dao.ListClubRank_BySeason(ref season_id, sort_type1, sort_type2, sort_type3, sort_type4); ViewBag.currentSeasonID = season_id; ViewBag.currentRoundID = round_id; return(View()); }