/// <summary> /// Construct the viewmodel /// </summary> /// <param name="transaction">Creating transaction</param> /// <param name="skus">List of SKUs to select</param> public TransactionCreateViewModel(Model.Transaction transaction, List<Model.SKU> skus) { Transaction = new TransactionCreateViewItem(transaction); SKUList = skus.ToSelectList(x => x.SkuId, x => x.SkuCode); }
/// <summary> /// Construct the viewmodel /// </summary> /// <param name="transaction">Creating transaction</param> /// <param name="skus">List of SKUs to select</param> public TransactionCreateViewModel(Model.Transaction transaction, List <Model.SKU> skus) { Transaction = new TransactionCreateViewItem(transaction); SKUList = skus.ToSelectList(x => x.SkuId, x => x.SkuCode); }