public EmployeeService(ICalcHours settings) { if (settings != null) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _employee = database.GetCollection <Funcionario>(settings.EmployeeCollection); } }
public BankHoursService(ICalcHours settings) { if (settings != null) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _bankHoursService = database.GetCollection <BancoDeHoras>(settings.BankHoursCollection); } }
public CompanyService(ICalcHours settings) { if (settings != null) { var client = new MongoClient(settings.ConnectionString); var database = client.GetDatabase(settings.DatabaseName); _company = database.GetCollection <Empresa>(settings.CompanyCollection); } }