protected override void DoExecute(CodeActivityContext context) { devlog.Debug(string.Format("Entered for '{0}' and '{1}'", consumer, appointments)); Models.ConsumerDTO myConsumer = consumer.Get(context); devlog.Debug(string.Format("Gor for '{0}'", myConsumer)); var consumerItems = AppointmentRepository.ConsumerAppointments(myConsumer); List <Models.AppointmentDTO> resultItems = new List <Models.AppointmentDTO>(consumerItems); appointments.Set(context, consumerItems.ToArray()); }