public ProductPresenter(IProductView view) { if (Singleton <ProductBusiness> .Instance == null) { Singleton <ProductBusiness> .Instance = new ProductBusiness(Singleton <PosEngine> .Instance.Resolve <IRepository <Product> >()); } _business = Singleton <ProductBusiness> .Instance; _businessPrice = new ProductPriceBusiness(Singleton <PosEngine> .Instance.Resolve <IRepository <ProductPrice> >()); _businessCategory = new CategoryBusiness(Singleton <PosEngine> .Instance.Resolve <IRepository <Category> >()); _view = view; Product product = new Product(); var units = new UnitBusiness(Singleton <PosEngine> .Instance.Resolve <IRepository <Unit> >()).GetAll().ToList(); var manufacturers = new ManufacturerBusiness(Singleton <PosEngine> .Instance.Resolve <IRepository <Manufacturer> >()).GetAll().ToList(); _model = new ProductModel(product, units, manufacturers); _view.InitView(_model); }