public UserGameSelection CreateDefaultUserGameSelection(GameSpread gameSpread, User user, Team noBetTeam) { if (gameSpread == null) { throw new ArgumentNullException("gameSpread"); } if (noBetTeam == null) { throw new ArgumentNullException("noBetTeam"); } if (user == null) { throw new ArgumentNullException("user"); } // create the userGameSelection with No Bets var userGameSelection = new UserGameSelection() { Bet = 0, GameSpreadId = gameSpread.GameSpreadId, PickTeamId = noBetTeam.TeamId, GameSpread = gameSpread, PickTeam = noBetTeam, UserId = user.UserId, User = user, Saved = false }; return(userGameSelection); }
public ResultsByGameGameRow(GameSpread gameSpread, Team noWinnerTeam) { if (gameSpread == null) throw new ArgumentNullException("gameSpread"); if (noWinnerTeam == null) throw new ArgumentNullException("noWinnerTeam"); GameSpreadId = gameSpread.GameSpreadId; FavoriteTeamId = gameSpread.FavoriteTeamId; FavoriteTeamName = gameSpread.FavoriteTeam.TeamLongName; UnderdogTeamId = gameSpread.UnderdogTeamId; UnderdogTeamName = gameSpread.UnderdogTeam.TeamLongName; Spread = gameSpread.Spread; WinnerTeamId = noWinnerTeam.TeamId; WinnerTeamName = noWinnerTeam.TeamLongName; UsersData = new List<ResultsByGameGameRowUserData>(); }
public UserGameSelection CreateDefaultUserGameSelection(GameSpread gameSpread, User user, Team noBetTeam) { if (gameSpread == null) throw new ArgumentNullException("gameSpread"); if (noBetTeam == null) throw new ArgumentNullException("noBetTeam"); if (user == null) throw new ArgumentNullException("user"); // create the userGameSelection with No Bets var userGameSelection = new UserGameSelection() { Bet = 0, GameSpreadId = gameSpread.GameSpreadId, PickTeamId = noBetTeam.TeamId, GameSpread = gameSpread, PickTeam = noBetTeam, UserId = user.UserId, User = user, Saved = false }; return userGameSelection; }