public GenericRepository(SaluteOnlineDbContext context, IConfiguration configuration)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }

            if (typeof(IMongoEntity).IsAssignableFrom(typeof(TEntity)))
            {
                _mongoDb = new MongoClient(configuration.GetValue <string>("MongoSettings:Path"))
                           .GetDatabase(configuration.GetValue <string>("MongoSettings:DB"));
            }
            else
            {
                _context = context;
                _dbSet   = context.Set <TEntity>();
            }
        }
 public UnitOfWork(SaluteOnlineDbContext context, IConfiguration configuration)
 {
     _context       = context;
     _configuration = configuration;
 }