public async Task <Product[]> GetAllProducts() { return(await _parkRepository.GetAllProductsAsync()); }
public async Task <ProductModel[]> GetAllProductsAsync() { return(_mapper.Map <ProductModel[]>(await _parkRepository.GetAllProductsAsync())); }