public override ICollection <aPermissionData> toDataObject(string owner = "") { aPermissionData me = DataAccess.getPremmisionGIE(owner, this.store); if (me == null) { me = new getInfoEmployeesPermissionData(store, sponser); } if (next == null) { return new List <aPermissionData> { me } } ; else { ICollection <aPermissionData> ans = next.toDataObject(owner); ans.Add(me); return(ans); } }
public static aPermission toObject(getInfoEmployeesPermissionData data) { return(new getInfoEmployees(data.store, data.sponser)); }