Figure 6-The result of api at /api/employee/delete/{Employeeld) when the database server is in stopped state.
Question 2. (5 points)
In this question, you are asked to write a web site (MVC or RazorPages) that using APIs of Question 1 to manage orders and employees.
Note that using the root path
http://localhost:5000 to call APIs.
You are asked to create page at url /Order/OrderList to display all orders, search orders by order's date and delete employee of the order.
List Orders
17204
1008-18 27000000
LABON
Figure 1 The page when first loaded.
2.1 (1.5 points) when user open/Order/OrderList, load all orders from database like Figure 1.
2.2 (1.5 points) user can use two inputs [From date] and [To date] and button Search, to search orders
that has OrderDate between [From date] and [To date). List of orders will be reloaded.
2.3 (2 points) if user click on the link (Delete Employee), delete the corresponding employee and all related information. After that, show the message to notify and reload list of orders (all remaining orders in.the database). See Figure 2.
Zoom FUO + 80%
Close