public ActionResult Index() { //準備employee下拉選單 EmployeeService employeeservice = new EmployeeService(); ViewBag.employeelist = employeeservice.GetEmpName(); //準備shipper下拉選單 ShippersService shippersservice = new ShippersService(); ViewBag.shipperslist = shippersservice.GetShipper(); return(View()); }
public ActionResult InsertOrder() { //準備employee下拉選單 EmployeeService employeeservice = new EmployeeService(); ViewBag.employeelist = employeeservice.GetEmpName(); //準備shipper下拉選單 ShippersService shippersservice = new ShippersService(); ViewBag.shipperslist = shippersservice.GetShipper(); //準備customer下拉選單 CustomerService customerservice = new CustomerService(); ViewBag.customerlist = customerservice.GetCustomerList(); return(View()); }