private static Friend Convert(tblFriends_Friends obj)
 {
     if (obj == null)
     {
         return null;
     }
     var friend = new Friend(obj.Id, obj.CreatedDate, obj.CreatedBy, obj.ModifiedDate, obj.ModifiedBy);
     friend.CopyFromObject(obj);
     friend.Groups = new List<Group>(Convert(obj.Groups));
     return friend;
 }