public CreateProspectModel() { ProspectModel = new WProspect(); var dTeams = Db.GetAllTeams(); PossibleTeams = new List<WTeam>(); foreach (var dTeam in dTeams) { var wTeam = Mapper.Map<WTeam>(dTeam); PossibleTeams.Add(wTeam); } }
public CreateProspectModel() { ProspectModel = new WProspect(); var dTeams = Db.GetAllTeams(); PossibleTeams = new List <WTeam>(); foreach (var dTeam in dTeams) { var wTeam = Mapper.Map <WTeam>(dTeam); PossibleTeams.Add(wTeam); } }