public List <LogParameters> GenerateLogParamters(List <string> activeLogs) { List <LogParameters> logParameters = new List <LogParameters>(); foreach (var log in activeLogs) { LogParameters logParameter = PopulateFields(log); logParameters.Add(logParameter); } return(logParameters); }