private void DrawLoadCombos() { List <DrawStatusModel> oStatus = DrawDAC.StatusGet(); ViewBag.Status = oStatus; List <GameModel> oGames = PlayDAC.GamesGet(); ViewBag.Games = oGames; }
private void PlayLoadCombos(int?GameId = null, DateTime?DateFrom = null) { List <PlayStatusModel> oStatus = PlayDAC.StatusGet(); ViewBag.Status = oStatus; List <GameModel> oGames = PlayDAC.GamesGet(); ViewBag.Games = oGames; if (GameId.HasValue && DateFrom.HasValue) { List <DrawModel> oDraws = DrawDAC.Get(new DrawModel { GameId = GameId, DateFrom = DateFrom }); ViewBag.Draws = oDraws; } }