Exemplo n.º 1
0
        public ActionResult GetOrder(int orderID)
        {
            var   repo  = new NorthwindsRepo();
            Order order = new Order();

            order = repo.GetByIdStoredProcedure(orderID);
            return(View(order));
        }
Exemplo n.º 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));
        }