Exemplo n.º 1
0
        public IEnumerable <StudentViewModel> GetStudent()
        {
            var map = new MapperConfiguration(c => c.CreateMap <StudentDTO, StudentViewModel>()).CreateMapper();

            return(map.Map <IEnumerable <StudentDTO>, IEnumerable <StudentViewModel> >(serviceCreator.studentService().GetAll()));
        }