Ejemplo n.º 1
0
        public ActionResult Index(string season_id = null)
        {
            var dao = new rank_dao();

            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);

            var model = dao.ListClubRank_BySeason(ref season_id, sort_type1, sort_type2, sort_type3, sort_type4);

            //Chọn mặc định cho các dropdownlist
            SetListSeason(season_id);
            SetListSortRule1(sort_type1);
            SetListSortRule2(sort_type2);
            SetListSortRule3(sort_type3);
            SetListSortRule4(sort_type4);

            return(View(model));
        }
Ejemplo n.º 2
0
        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());
        }