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);
            }
        }