public ActionResult Create() { var seasons = _adminSeasonService.GetSeasonSelectList(); var model = new VMAdminMatchweekCreate { Seasons = seasons }; return(View(model)); }
public void CreateMatchweek(VMAdminMatchweekCreate matchweek) { if (string.IsNullOrWhiteSpace(matchweek.MatchweekName)) { return; } var coreModel = new CoreNewMatchweek { MatchweekName = matchweek.MatchweekName, SeasonId = matchweek.SeasonId }; _adminMatchweekAccess.AddMatchweek(coreModel); }
public ActionResult Create(VMAdminMatchweekCreate model) { _adminMatchweekService.CreateMatchweek(model); return(RedirectToAction("Index")); }