Guest User

Untitled

a guest
Jun 8th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.19 KB | None | 0 0
  1.  public class sendData(List<User> sss)
  2.  
  3.     {
  4.          foreach(var itemUser in User)
  5.         {
  6.             //Wyszystko powinno byc pobrane dla id=1 czyli tez  sf_guard_user_id=1
  7.             itemUser.id = id;// 1
  8.             itemUser.username = username;// [email protected]
  9.  
  10.             foreach(var itemProfile in User.profiles)
  11.                 {
  12.                    itemProfile.sfguarduser_ = idProfile; // 3  a powinno być 1 i pobrac dane dla 1
  13.                    itemProfile.full_name = name;//  Jan kowalski a powinno byc Michał bialek
  14.                    itemProfile.town = town;//Warsza a powinno być Poznan
  15.                 }
  16.  
  17.             foreach (var itemOrder in User.orders)
  18.                 {
  19.                    itemOrder.sf_guard_user_id =id// moze wcyztac dla 5 a powinno byc 1
  20.                    itemOrder.order_status_id=status;
  21.                     itemOrder.description=decription;
  22.                     itemOrder.order_user_data_delivery_countre=delCountry;
  23.                    itemOrder.order_user_data_delivery_full_name=delName;
  24.                 }
  25.  
  26. //jak przekazać wartości z pętli  jako parametr
  27.         api.DodajOrder(username,namespace,status,delName,delCountry)
  28.     }
  29.   }
Advertisement
Add Comment
Please, Sign In to add comment