Exemplo n.º 1
0
        public ActionResult Create()
        {
            var seasons = _adminSeasonService.GetSeasonSelectList();
            var model   = new VMAdminMatchweekCreate
            {
                Seasons = seasons
            };

            return(View(model));
        }
Exemplo n.º 2
0
        public void CreateMatchweek(VMAdminMatchweekCreate matchweek)
        {
            if (string.IsNullOrWhiteSpace(matchweek.MatchweekName))
            {
                return;
            }
            var coreModel = new CoreNewMatchweek
            {
                MatchweekName = matchweek.MatchweekName,
                SeasonId      = matchweek.SeasonId
            };

            _adminMatchweekAccess.AddMatchweek(coreModel);
        }
Exemplo n.º 3
0
 public ActionResult Create(VMAdminMatchweekCreate model)
 {
     _adminMatchweekService.CreateMatchweek(model);
     return(RedirectToAction("Index"));
 }