コード例 #1
0
        // GET: OrderController
        public ActionResult Index(int id)
        {
            ViewBag.cust = _custBL.GetCustomerById(id);

            List <Orders> orderList = _orderBL.GetOrders(_custBL.GetCustomerById(id));

            return(View(orderList
                        .Select(Orders => new OrderVM(Orders))
                        .ToList()));
        }
コード例 #2
0
 // GET: CustomerController/Delete/5
 public ActionResult Delete(int id)
 {
     return(View(new CustomerVM(_custBL.GetCustomerById(id))));
 }