public IHttpActionResult GetLotsSelection(int pageNumber) { IEnumerable <LotDto> lotsByPageNumber = _lotService.GetLotsByPageNumber(pageNumber); if (!lotsByPageNumber.Any()) { return(NotFound()); } return(Ok(lotsByPageNumber)); }