Exemplo n.º 1
0
        // GET: OrderDetails/Create
        public IActionResult Create()
        {
            var cust = _customerMapper.BlGetAllCustomer();

            ViewData["CustomerId"] = new SelectList(cust, "CustomerId", "FullName");
            var prod = _productMapper.BlGetAllProduct();

            ViewData["ProductId"] = new SelectList(prod, "ProductId", "Article");
            return(View());
        }