public async Task <IActionResult> Get([FromRoute] int userId, [FromQuery] int page_size = 10, [FromQuery] int page = 1) { var wish = await _wishService.FindByUserIdAsync(userId, page, page_size); return(Ok(_mapper.Map <IEnumerable <Product>, IEnumerable <ProductResponse> >(wish.Results.Select(w => w.Product)))); }