public void DeleteReferences(EntityReference entity, ICrmDataServiceAf service) { var partyAndPointer = service.GetRepository <IActivityPointerCrmRepo>().GetAcPartyAndPointer(entity.Id); if (partyAndPointer.pointer?.ActivityId != null) { service.OrganizationService.Delete(partyAndPointer.pointer.ActivityTypeCode, partyAndPointer.pointer.ActivityId.Value); } }
public ActivityPointerCrmRepo(ICrmDataServiceAf crmDataService) : base(crmDataService) { }