private void CreateDoc(Doc newDoc)
 {
     try
     {
         for (int i = 1; i <= new DataBaseManager().DatabasesCount(); i++)
         {
             using (var _reposertory = new DataBaseManager().GetDatabase(i))
             {
                 _reposertory.Doc.Add(newDoc);
                 _reposertory.SaveChanges();
             }
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.ToString());
     }
 }