public IEnumerable <Connection> GetConnection() { _logger.LogInformation(" getting all connection"); return(_repo.GetConnection().ToArray()); }