public void Execute(Guid id) { Course entity = _repository.GetByID(id); CourseResponse response = CourseAdapter.GetResponse(entity); _presenter.Notify(response); }
public void Execute() { List <Course> courses = _repository.GetAll(); List <CourseResponse> response = courses.Select(x => CourseAdapter.GetResponse(x)).ToList(); _presenter.Notify(response); }