public ActionResult <Auction> Get(int id)
        {
            Auction auction = _dao.Get(id);

            if (auction != null)
            {
                return(Ok(auction));
            }
            else
            {
                return(NotFound());
            }
        }
示例#2
0
        public Auction GetAuctionsId(int id)
        {
            Auction auction = dao.Get(id);

            if (auction != null)
            {
                return(auction);
            }
            return(null);
        }
示例#3
0
        public Auction GetAuction(int id)
        {
            Auction auction = dao.Get(id);

            if (auction != null)
            {
                return auction;
            }

            return null;
        }
示例#4
0
 public Auction Get(int id)
 {
     return(dao.Get(id));
 }
示例#5
0
        public Auction Get(int id)
        {
            Auction auction = dao.Get(id);

            return(auction);
        }