Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class sendData(List<User> sss)
- {
- foreach(var itemUser in User)
- {
- //Wyszystko powinno byc pobrane dla id=1 czyli tez sf_guard_user_id=1
- itemUser.id = id;// 1
- foreach(var itemProfile in User.profiles)
- {
- itemProfile.sfguarduser_ = idProfile; // 3 a powinno być 1 i pobrac dane dla 1
- itemProfile.full_name = name;// Jan kowalski a powinno byc Michał bialek
- itemProfile.town = town;//Warsza a powinno być Poznan
- }
- foreach (var itemOrder in User.orders)
- {
- itemOrder.sf_guard_user_id =id// moze wcyztac dla 5 a powinno byc 1
- itemOrder.order_status_id=status;
- itemOrder.description=decription;
- itemOrder.order_user_data_delivery_countre=delCountry;
- itemOrder.order_user_data_delivery_full_name=delName;
- }
- //jak przekazać wartości z pętli jako parametr
- api.DodajOrder(username,namespace,status,delName,delCountry)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment