示例#1
0
        public StudentsViewModel(IStudentService studentService, IDeleteCommandService deleteParameterService, IStudentRepository studentRepository)
        {
            this.studentService       = studentService;
            this.deleteCommandService = deleteParameterService;
            this.studentRepository    = studentRepository;

            Students = MappingUtil.MapToObservebleCollection <Student, StudentDTO>(studentRepository.GetAll());
        }