예제 #1
0
 public ActionResult GetOrder(int orderID)
 {
     var repo = new NorthwindsRepo();
     Order order = new Order();
     order = repo.GetByIdStoredProcedure(orderID);
     return View(order);
 }
예제 #2
0
        public ActionResult GetOrder()
        {
            int orderID = int.Parse(Request.Form["orderID"]);

            var repo = new NorthwindsRepo();
            Order order = new Order();
            order = repo.GetByIdStoredProcedure(orderID);
            return View(order);
        }
예제 #3
0
        public ActionResult DisplayOrderList()
        {
            var ordersVM = new AllOrdersVM();

            var repo = new NorthwindsRepo();

            ordersVM.OrderList = repo.GetOrderList();
            ordersVM.OrderCount = repo.GetTotalOrderCount();

            return View(ordersVM);
        }