Exemple #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));
        }
Exemple #2
0
        public ActionResult Index()
        {
            ProfessorServiceRemote.ProfessorServiceClient cliente     = new ProfessorServiceRemote.ProfessorServiceClient();
            List <ProfessorServiceRemote.ProfessorDTO>    professores = cliente.GetAll();

            return(View(Mapper.Map <List <Professor> >(professores)));
        }
 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);
 }
 public ActionResult Index()
 {
     ProfessorServiceRemote.ProfessorServiceClient cliente = new ProfessorServiceRemote.ProfessorServiceClient();
     List<ProfessorServiceRemote.ProfessorDTO> professores = cliente.GetAll();
     return View(Mapper.Map<List<Professor>>(professores));
 }