I have the following method:
public async Task<List<Product>> GetProductsAsync()
Which is fine, returns a list of Products.
However I'd like to make this generic - something like...
public async Task<List<T>> GetAsync()
But I'm struggling with syntax and I'd really appreciate it if someone can point me in the right direction.
Thanks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With