public ActionResult GetOrder(int orderID) { var repo = new NorthwindsRepo(); Order order = new Order(); order = repo.GetByIdStoredProcedure(orderID); return View(order); }
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); }
public ActionResult DisplayOrderList() { var ordersVM = new AllOrdersVM(); var repo = new NorthwindsRepo(); ordersVM.OrderList = repo.GetOrderList(); ordersVM.OrderCount = repo.GetTotalOrderCount(); return View(ordersVM); }