public void submitAuctionAmont(CurrentAuction prvidedDetails)
        {
            GenericRepository <UserAuctionInfo> UserAuctionInfoRepository;

            using (UnitOfWork unitOfWork = new UnitOfWork())
            {
                UserAuctionInfoRepository = unitOfWork.GetRepoInstance <UserAuctionInfo>();
                UserAuctionInfo saveUserAuctionInfo = new UserAuctionInfo();
                saveUserAuctionInfo.AuctionAmount = Convert.ToDecimal(prvidedDetails.UserAmount);
                saveUserAuctionInfo.Timestamp     = DateTime.Now;
                saveUserAuctionInfo.Product       = new Product();    //Here we need current product
                saveUserAuctionInfo.UserDetail    = new UserDetail(); //current UserID
                saveUserAuctionInfo.UserDetail1   = new UserDetail(); //current User Manger
                UserAuctionInfoRepository.Insert(saveUserAuctionInfo);
                unitOfWork.SaveChanges();
            }
        }
 internal void Tick()
 {
     if (CheckForNewAuctionStarting())
     {
         return;
     }
     if (CurrentAuction != null)
     {
         CurrentAuction.CheckForAnnouncments();
         if (CurrentAuction.CheckForFinish())
         {
             CurrentAuction = null;
             Plugin.Instance.UIManager.DestroyUi();
             LastCompletedAuction = DateTime.UtcNow;
         }
     }
 }
 private void BroadcastCurrentAuctionPrice(CurrentAuction CurrentAuction)
 {
     Clients.All.updateCurrentAuctionPrice(CurrentAuction);
 }
 private bool TryUpdateCurrentAuctionPrice(CurrentAuction CurrentAuction)
 {
     return(true);
 }