public async Task <Product> GetProductAsync(int id) { var spec = new ProductWithTypesAndBrandsSpecification(id); ProductDto productDto = await _productStorage.GetEntityWithSpec(spec); return(productDto?.ToCoreEntity()); }
public async Task <Product> GetProductAsync(int id) { var spec = new ProductWithTypesAndBrandsSpecification(id); ProductDto productDto = await _productStorage.GetEntityWithSpec(spec); return(productDto?.ToCoreEntity()); }