public async Task <IActionResult> Search([FromQuery] string request) { var result = await _showingService.Search(request); var res = _mapper.Map <IEnumerable <ProductModel> >(result); if (result != null) { return(Ok(res)); } else { return(BadRequest(res)); } }