.NET How to make Service methods asynchronous?
Generally, things will be asynchronous in the controller class. Now I have a service, which has the DbContext through Dependency Injection. This is how it looks like: public class SomeService : ISomeService { private readonly _context; public SomeService(SomeDbContext context) { _context = context; } public User SomeFunction(int id) { // how to make this async … Read more