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