示例#1
0
        public async Task <IActionResult> Filter([FromQuery] int min, [FromQuery] int max)
        {
            var result = await _showingService.GetFilter(min, max);

            var res = _mapper.Map <IEnumerable <ProductModel> >(result);

            if (result != null)
            {
                return(Ok(res));
            }
            else
            {
                return(BadRequest(res));
            }
        }