Пример #1
0
        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));
            }
        }