in src/Relecloud.Web.CallCenter/Controllers/ConcertController.cs [228:246]
public async Task<IActionResult> Search(SearchRequest request)
{
try
{
if (string.IsNullOrEmpty(request.Query))
{
ViewBag.NoSearch = "Use the search bar to find your favorite concerts.";
return View();
}
var result = await this.concertSearchService.SearchAsync(request);
return View(result);
}
catch (Exception ex)
{
this.logger.LogError(ex, $"Unable to display search results for query '{request.Query}'");
return View(default(SearchResponse<Concert>));
}
}