private void AddAddServiceLineItemCommandToExecute(ActivityServiceItem item) { if (item == null) return; var cmd = new AddActivityServiceLineItemCommand(); cmd.CommandCreatedDateTime = DateTime.Now; cmd.CommandGeneratedByCostCentreApplicationId = DocumentIssuerCostCentreApplicationId; cmd.CommandGeneratedByCostCentreId = FieldClerk.Id; cmd.CommandId = Guid.NewGuid(); cmd.DocumentId = Id; cmd.ServiceId = item.Service.Id; cmd.ServiceProviderId = item.ServiceProvider.Id; cmd.ShiftId = item.Shift.Id; cmd.Description = item.Description; cmd.LineItemId = item.Id; cmd.Description = item.Description; _AddCommand(cmd); }
public void Add(ActivityServiceItem item) { _activityServiceItems.Add(item); AddAddServiceLineItemCommandToExecute(item); }