예제 #1
0
        public void Execute(Guid id)
        {
            Course         entity   = _repository.GetByID(id);
            CourseResponse response = CourseAdapter.GetResponse(entity);

            _presenter.Notify(response);
        }
예제 #2
0
        public void Execute()
        {
            List <Course>         courses  = _repository.GetAll();
            List <CourseResponse> response = courses.Select(x => CourseAdapter.GetResponse(x)).ToList();

            _presenter.Notify(response);
        }