public ProductListPresenter(IProductListView view, ProductListModel model)
 {
     _view               = view;
     _model              = model;
     _productRepository  = _model.ProductRepository;
     _categoryRepository = _model.CategoryRepository;
     CategoriesList      = new List <Category>(_categoryRepository.GetAll().ToList());
 }
 public ProductListPresenter(IProductListView view, ProductListModel model)
 {
     _view = view;
     _model = model;
     _productRepository = _model.ProductRepository;
     _categoryRepository = _model.CategoryRepository;
     CategoriesList = new List<Category>(_categoryRepository.GetAll().ToList());
 }