public static GridConditions PopulateCommonGridConditions(List <KeyValuePair <string, string> > queryParams) { return(new GridConditions { sEcho = QueryParamsParsingService.GetValue(queryParams, "sEcho"), StartRow = QueryParamsParsingService.StartRow(queryParams), EndRow = QueryParamsParsingService.EndRow(queryParams), TimezoneOffset = QueryParamsParsingService.TimeZoneOffset(queryParams), StartDate = QueryParamsParsingService.StartDate(queryParams), EndDate = QueryParamsParsingService.EndDate(queryParams), ServerArtifactId = QueryParamsParsingService.ServerArtifactId(queryParams), SelectedServers = QueryParamsParsingService.SelectedServers(queryParams) }); }