public static UsuarioDataService GetInstance(string connectionString) { if (_instance == null) { lock (_lock) { if (_instance == null) { _instance = new UsuarioDataService(connectionString); } } } return(_instance); }
public UsuarioService(string connectionString) { _dataService = UsuarioDataService.GetInstance(connectionString); }