示例#1
0
        public async Task <IHttpActionResult> GetHighestAmountForItem(int ItemId)
        {
            if (ItemId < 0)
            {
                return(BadRequest());
            }
            var res = await _bidService.GetHighestBidAmountForGivenItemAsync(ItemId);

            if (res == null)
            {
                return(NotFound());
            }
            return(Ok(res));
        }