I hit error does not contain a definition for 'GetAwaiter' and no accessible extension method 'GetAwaiter' accepting a first argument of type 'List at the return of this method. May I know what I miss out?
[HttpGet]
public async Task<ActionResult<IEnumerable<MovieDto>>> GetMovies()
{
var movies = (from m in _context.Movies
select new MovieDto()
{
MovieTitle = m.MovieTitle,
ReleaseDate = m.ReleaseDate,
MovieStatus = m.MovieStatus,
PhotoFile = m.PhotoFile
}).ToList();
return await movies;
}