コード例 #1
0
        private MultiSelectList CriaMultiSelectListProfessores(List <int> professoresId)
        {
            ProfessorServiceRemote.ProfessorServiceClient cliente = new ProfessorServiceRemote.ProfessorServiceClient();
            var professores = Mapper.Map <List <Professor> >(cliente.GetAll());

            return(new MultiSelectList(professores, "Id", "NomeCompleto", professoresId));
        }
コード例 #2
0
        public ActionResult Index()
        {
            ProfessorServiceRemote.ProfessorServiceClient cliente     = new ProfessorServiceRemote.ProfessorServiceClient();
            List <ProfessorServiceRemote.ProfessorDTO>    professores = cliente.GetAll();

            return(View(Mapper.Map <List <Professor> >(professores)));
        }
コード例 #3
0
 private MultiSelectList CriaMultiSelectListProfessores(List<int> professoresId)
 {
     ProfessorServiceRemote.ProfessorServiceClient cliente = new ProfessorServiceRemote.ProfessorServiceClient();
     var professores = Mapper.Map<List<Professor>>(cliente.GetAll());
     return new MultiSelectList(professores, "Id", "NomeCompleto", professoresId);
 }
コード例 #4
0
 public ActionResult Index()
 {
     ProfessorServiceRemote.ProfessorServiceClient cliente = new ProfessorServiceRemote.ProfessorServiceClient();
     List<ProfessorServiceRemote.ProfessorDTO> professores = cliente.GetAll();
     return View(Mapper.Map<List<Professor>>(professores));
 }