How do I make this an async action result if I am using auto mapper.
public async Task<IActionResult> Index()
var items = _context.Customers.ToListAsync();
var mappedItems = _mapper.Map<List<CustomerViewModel>>(items);
The issue is from the context I can use ToListAsync but I can't use the await such as return View(await mappedItems);. What is the best way to handle this when using automapper?