Пример #1
0
        public ActionResult DetailProduct(int ProductID)
        {
            ProductListViewModel model = new ProductListViewModel();

            model.ProductDetail = dac.DetailProduct(ProductID);

            List <ProductList> ForwardBom = dac.ProductBOM(true, ProductID);
            List <ProductList> ReverseBom = dac.ProductBOM(false, ProductID);

            if (ForwardBom != null)
            {
                model.ForwardBom = ForwardBom;
            }
            else
            {
                model.ForwardBom = NullList;
            }

            if (ReverseBom != null)
            {
                model.ReverseBom = ReverseBom;
            }
            else
            {
                model.ReverseBom = NullList;
            }

            return(View(model));
        }