コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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);
        }