protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    Save();
                }

                _context      = null;
                _fileName     = null;
                _jsonManager  = null;
                disposedValue = true;
            }
        }
 public GenericRepository(string fileName)
 {
     _jsonManager = new JSONManager();
     _context     = (T)_jsonManager.DeserialezeFile <T1>(fileName);
     _fileName    = fileName;
 }