コード例 #1
0
        static public BindedProductViewModel MapSingleBindedProduct(CProduct product)
        {
            var viewProduct = new BindedProductViewModel
            {
                UniqueID = product.UniqueID,
                Name     = product.Name,
                Category = product.Category,
                Price    = product.Price,
                Quantity = product.Quantity,
            };

            return(viewProduct);
        }
コード例 #2
0
        static public DetailedProductViewModel MapSingleDetailedProductWithoutTotal(CProduct product)
        {
            var viewProduct = new DetailedProductViewModel
            {
                UniqueID = product.UniqueID,
                Name     = product.Name,
                Category = product.Category,
                Price    = product.Price,
                Quantity = product.Quantity,
            };

            return(viewProduct);
        }