Advertisement
Guest User

Untitled

a guest
Jun 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. Ogólne 0
  2.   -Spożywcze  36
  3.     -Kosmetyki  33
  4.         -Mydło  id grupy 22
  5.   -Ubrania 9
  6.  
  7.  
  8. Do modelu nei wiem jak wpisać kilka id bo to musi być elastyczne>jedyne co mi przychodzi do głowy to zrobic model
  9.  
  10.   public class ProductGroupModel
  11.     {
  12.  public string  groupParentId { get; set; }
  13.  
  14.      
  15.     }
  16. }
  17.  
  18.   public class ProductModel
  19.     {
  20.    
  21.  
  22.        public string id { get; set; }
  23.         public string group_id { get; set; }
  24.         public string name { get; set; }
  25.  public List<ProductGroupModel>g roupParentId { get; set; }
  26.  
  27.      
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement