public async Task <IHttpActionResult> GetConcludedAuction(int id)
        {
            ConcludedAuction objct = await db.ConcludedAuctions.FindAsync(id);

            if (objct == null)
            {
                return(NotFound());
            }

            ConcludedAuctionNoR newObject = new ConcludedAuctionNoR()
            {
                // Bids= objct.Bids,
                //  BankApproval = objct.BankApproval,
                // Bid = objct.Bid,
                ExceededReserve = objct.ExceededReserve,
                HiegestBid      = objct.HiegestBid,
                // Property = objct.Property,
                //  Property = objct.Property,
                // RegisteredBuyer = objct.RegisteredBuyer,
                PropertyID = objct.PropertyID,
                // RegisteredBuyer = objct.RegisteredBuyer,
                TimeOfConclution = objct.TimeOfConclution,
                WinningBidder    = objct.WinningBidder,
                // TimeOfbid = objct.TimeOfbid
                //Seller = objct.Seller
                // AuctionRegistration = fee.AuctionRegistration
            };

            return(Ok(newObject));
        }
        // GET: api/ConcludedAuctions
        public ICollection <ConcludedAuctionNoR> GetConcludedAuctions()
        {
            List <ConcludedAuctionNoR> Lys = new List <ConcludedAuctionNoR>();

            foreach (ConcludedAuction objct in db.ConcludedAuctions.Include(c => c.Bid).Include(c => c.Property).Include(c => c.RegisteredBuyer))
            {
                ConcludedAuctionNoR newObject = new ConcludedAuctionNoR()
                {
                    // Bids= objct.Bids,
                    //  BankApproval = objct.BankApproval,
                    // Bid = objct.Bid,
                    ExceededReserve = objct.ExceededReserve,
                    HiegestBid      = objct.HiegestBid,
                    // Property = objct.Property,
                    //  Property = objct.Property,
                    // RegisteredBuyer = objct.RegisteredBuyer,
                    PropertyID = objct.PropertyID,
                    // RegisteredBuyer = objct.RegisteredBuyer,
                    TimeOfConclution = objct.TimeOfConclution,
                    WinningBidder    = objct.WinningBidder,
                    // TimeOfbid = objct.TimeOfbid
                    //Seller = objct.Seller
                    // AuctionRegistration = fee.AuctionRegistration
                };


                Lys.Add(newObject);
            }

            return(Lys);
        }