[Solved] Cannot implicitly convert type ‘Task’ to ‘Task’
QueryReadOnlyListAsync calls the Dapper extension method QueryAsync, which returns a Task<IEnumerable<T>>. IEnumerable doesn’t implement IReadOnlyList. You can’t return Task<IEnumerable> if the method’s return type is Task<IReadOnlyList>. You need to convert the IEnumerable into a collection that implements IReadOnlyList, such as a regular List: //Make method async so you can await the Task returned by ExecuteWithResiliency … Read more