public async Task <List <Product> > GetAll() { var listOfProducts = await Task.Run(() => { return(_productHandler.GetAll()); }); return(listOfProducts); }
public async Task <ActionResult <List <MovieDto> > > GetMovies() { var movies = await handler.GetAll(); return(Ok(movies)); }