public async Task <ProductType> GetProductTypeAsync(int id) { ProductTypeDto productTypeDto = await _productTypeStorage.GetByIdAsync(id); return(productTypeDto?.ToCoreEntity()); }
public async Task <ProductBrand> GetProductBrandAsync(int id) { ProductBrandDto productBrandDto = await _productBrandStorage.GetByIdAsync(id); return(productBrandDto?.ToCoreEntity()); }