public ProductCompanyViewModel() { var Scope = Startup.Instance.provider.CreateScope(); _productCompany = new CatalogBrand(); _repositoryProductCompany = Scope.ServiceProvider.GetRequiredService <IProductCompanyService>(); ProductCompanies = _repositoryProductCompany.GetAllProductCompanies(); WireCommands(); }
public IEnumerable <CatalogBrand> Get() { return(_productcompanyService.GetAllProductCompanies()); }