public async Task <IActionResult> SearchResults(string searchString) { var searchResults = await _service.SearchTracksAsync(searchString); if (searchResults == null) { Response.StatusCode = 500; return(View("Error")); } var likeList = _likedSongsService.GetLikedSongs(); var resultVm = _converterService.ConvertToTracksVm(searchResults, likeList); return(View("Tracks", resultVm)); }