public static FooterUrlData RemoveReferences(this FooterUrlData item) { var obj = new FooterUrlData(); obj = item.RemoveReference(); if (item.FooterUrl != null) { obj.FooterUrl = new FooterUrl(); obj.FooterUrl = item.FooterUrl.RemoveReference(); } return(obj); }
public static List <FooterUrlData> RemoveReferences(this List <FooterUrlData> list) { var newList = new List <FooterUrlData>(); list.ForEach(item => { var obj = new FooterUrlData(); obj = item.RemoveReferences(); newList.Add(obj); }); return(newList); }