public IRepositoryMongo <T> GetRepository <T>() where T : class, IEntity
 {
     return(repositories.Repository <T>(mongoConfig));
 }