コード例 #1
0
        public ActionResult <List <Bid> > GetAllTopBids()
        {
            List <Bid> topBids = bidDao.GetHighestBidForAllItems();

            if (topBids != null && topBids.Count > 0)
            {
                return(Ok(topBids));
            }
            else
            {
                // TODO: should a different code be sent back?
                return(Unauthorized());
            }
        }