Exemplo n.º 1
0
        public ActionResult Create(int?unionId, int?clubId, TournamentsPDF.EditType et, int seasonId)
        {
            var vm = new LeagueCreateForm {
                UnionId = unionId, ClubId = clubId, Et = et, SeasonId = seasonId
            };

            vm.Ages    = new SelectList(leagueRepo.GetAges(), "AgeId", "Title", vm.AgeId);
            vm.Genders = new SelectList(leagueRepo.GetGenders(), "GenderId", "TitleMany", vm.GenderId);

            return(PartialView("_CreateForm", vm));
        }
Exemplo n.º 2
0
        public ActionResult CreatePDF(int id, TournamentsPDF.EditType et)
        {
            var vm = new LeagueCreateForm {
                UnionId = id, Et = et
            };

            vm.Ages    = new SelectList(leagueRepo.GetAges(), "AgeId", "Title", vm.AgeId);
            vm.Genders = new SelectList(leagueRepo.GetGenders(), "GenderId", "TitleMany", vm.GenderId);

            return(PartialView("_CreateForm", vm));
        }