コード例 #1
0
 public ProductListPresenter(IProductListView view, ProductListModel model)
 {
     _view               = view;
     _model              = model;
     _productRepository  = _model.ProductRepository;
     _categoryRepository = _model.CategoryRepository;
     CategoriesList      = new List <Category>(_categoryRepository.GetAll().ToList());
 }
コード例 #2
0
 public ProductListPresenter(IProductListView view, ProductListModel model)
 {
     _view = view;
     _model = model;
     _productRepository = _model.ProductRepository;
     _categoryRepository = _model.CategoryRepository;
     CategoriesList = new List<Category>(_categoryRepository.GetAll().ToList());
 }