public async Task <IHttpActionResult> GetAuction(int id)
        {
            Auction objct = await db.Auctions.FindAsync(id);

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

            AuctionNoR newObject = new AuctionNoR()
            {
                // Bids= objct.Bids,
                //  BankApproval = objct.BankApproval,
                EndTime = objct.EndTime,
                // Property = objct.Property,
                //  Guarintee = objct.Guarintee,
                StartTime = objct.StartTime,
                //  Property = objct.Property,
                PropertyID = objct.PropertyID,
                //  RegesterDate = objct.RegesterDate,
                //RegisteredBuyer = objct.RegisteredBuyer,
                //  RegistrationFees = objct.RegistrationFees,
                //  Signiture = objct.Signiture,
                //  RegistrationStatus = objct.RegistrationStatus
                //Seller = objct.Seller
                // AuctionRegistration = fee.AuctionRegistration
            };

            return(Ok(newObject));
        }
        // GET: api/Auctions
        public ICollection <AuctionNoR> GetAuctions()
        {
            List <AuctionNoR> Lys = new List <AuctionNoR>();

            foreach (Auction objct in db.Auctions.Include(a => a.Property))
            {
                AuctionNoR newObject = new AuctionNoR()
                {
                    // Bids= objct.Bids,
                    //  BankApproval = objct.BankApproval,
                    EndTime = objct.EndTime,
                    // Property = objct.Property,
                    //  Guarintee = objct.Guarintee,
                    StartTime = objct.StartTime,
                    //  Property = objct.Property,
                    PropertyID = objct.PropertyID,
                    //  RegesterDate = objct.RegesterDate,
                    //RegisteredBuyer = objct.RegisteredBuyer,
                    //  RegistrationFees = objct.RegistrationFees,
                    //  Signiture = objct.Signiture,
                    //  RegistrationStatus = objct.RegistrationStatus
                    //Seller = objct.Seller
                    // AuctionRegistration = fee.AuctionRegistration
                };


                Lys.Add(newObject);
            }

            return(Lys);
        }