Example #1
0
 /// <summary>
 /// To delete the relation of the record based on ZCRMJunctionRecord class instance.
 /// </summary>
 /// <returns>APIResponse class instance.</returns>
 /// <param name="junctionRecord">ZCRMJunctionRecord class instance</param>
 public APIResponse DeleteRelation(ZCRMJunctionRecord junctionRecord)
 {
     return(ZCRMModuleRelation.GetInstance(this, junctionRecord).DeleteRelation());
 }
 /// <summary>
 /// To get ZCRMModuleRelation instance by passing ZCRMRecord class instance and ZCRMJunctionRecord class instance.
 /// </summary>
 /// <returns>The instance.</returns>
 /// <param name="parentRecord">ZCRMRecord class instance</param>
 /// <param name="junctionRecord">ZCRMJunctionRecord class instance</param>
 public static ZCRMModuleRelation GetInstance(ZCRMRecord parentRecord, ZCRMJunctionRecord junctionRecord)
 {
     return(new ZCRMModuleRelation(parentRecord, junctionRecord));
 }
 public static RelatedListAPIHandler GetInstance(ZCRMRecord parentRecord, ZCRMJunctionRecord junctionRecord)
 {
     return(new RelatedListAPIHandler(parentRecord, junctionRecord));
 }
 private ZCRMModuleRelation(ZCRMRecord parentRecord, ZCRMJunctionRecord junctionRecord)
 {
     ParentRecord   = parentRecord;
     JunctionRecord = junctionRecord;
 }
 private RelatedListAPIHandler(ZCRMRecord parentRecord, ZCRMJunctionRecord junctionRecord)
 {
     this.parentRecord   = parentRecord;
     this.junctionRecord = junctionRecord;
 }