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);
            }
        }
예제 #2
0
        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);
            }
        }