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)); }