Try using list.AddRange(VTSWeb.GetDailyWorktimeViolations(VehicleID2));
Use .AddRange
to append any Enumrable collection to the list.
Use Concat
or Union
extension methods. You have to make sure that you have this direction using System.Linq;
in order to use LINQ extensions methods.
Use the AddRange
method.
Source: Stackoverflow.com