예제 #1
0
 public ItemViewModel(ItemViewModel i)
 {
     item        = new Item();
     Id          = i.Id;
     Name        = i.Name;
     Description = i.Description;
     Category    = i.Category;
     Quantity    = new QuantityViewModel(i.Quantity);
     Price       = new PriceViewModel(i.Price);
     Detail      = new ItemDetailViewModel(i.Detail);
 }
예제 #2
0
 public ItemViewModel(string _id, string _name, string _desc, string _cat, QuantityViewModel _quantity, PriceViewModel _price, ItemDetailViewModel _detail)
 {
     item        = new Item();
     Id          = _id;
     Name        = _name;
     Description = _desc;
     Category    = _cat;
     Quantity    = _quantity;
     Price       = _price;
     Detail      = _detail;
 }