public void SaveChanges()
 {
     using (MultithreadDbContext dbContext = new MultithreadDbContext())
     {
         dbContext.SaveChanges();
     }
 }
        //private readonly MultithreadDbContext dbContext;

        //public LinksHistoryRepositoroes(MultithreadDbContext dbContext)
        //{
        //    this.dbContext = dbContext;
        //}

        public void Add(LinksHistoryEntity linksHistoryEntity)
        {
            using (MultithreadDbContext dbContext = new MultithreadDbContext())
            {
                dbContext.Links.Add(linksHistoryEntity);
                dbContext.SaveChanges();
            }
        }