public CreateTeamModel() { TeamModel = new WTeam(); var dLeagues = Db.GetAllLeagues(); PossibleLeagues = new List<WLeague>(); foreach (var dLeague in dLeagues) { var wLeague = Mapper.Map<WLeague>(dLeague); PossibleLeagues.Add(wLeague); } }
public CreateTeamModel() { TeamModel = new WTeam(); var dLeagues = Db.GetAllLeagues(); PossibleLeagues = new List <WLeague>(); foreach (var dLeague in dLeagues) { var wLeague = Mapper.Map <WLeague>(dLeague); PossibleLeagues.Add(wLeague); } }