コード例 #1
0
        public ProductCompanyViewModel()
        {
            var Scope = Startup.Instance.provider.CreateScope();


            _productCompany           = new CatalogBrand();
            _repositoryProductCompany = Scope.ServiceProvider.GetRequiredService <IProductCompanyService>();
            ProductCompanies          = _repositoryProductCompany.GetAllProductCompanies();
            WireCommands();
        }
コード例 #2
0
 public IEnumerable <CatalogBrand> Get()
 {
     return(_productcompanyService.GetAllProductCompanies());
 }