The error message suggests that listDeliveries
and listPickups
are methods, not variables. So you'll need to call the methods. At the same time, I would strongly suggest that you rename your methods to follow .NET naming conventions. So you might have:
public List<String> ListVisits()
{
List<String> visits = new List<string>();
visits.AddRange(ListDeiveries());
visits.AddRange(ListPickups());
return visits;
}
Or using LINQ:
public List<String> ListVisits()
{
return ListDeliveries().Concat(ListPickups()).ToList();
}