The view uses this markup to display the status: The Order Details page currently just displays the order status, but not delivery estimate or actual delivery time information. This is already done, so there's nothing we need to change in MyOrders.cshtml. The My Orders page should display the current order status of each order, and should link to the order details page. In this case, since there's not much domain logic involved and the UI is pretty straightforward, let's start with the UI. We can start on this feature from either end, working from the domain model first or from the UI first. Delivered orders should display the (calculated) date when they were delivered. The details page should display the status as well as a (simply calculated from order date) estimate of when the order will be delivered. The My Orders action should simply list the correct status. The current version of the application lists "Pending" for every order - it's hard coded in the OrderController class for both the My Orders list action and the order details action. Order Status should have the following options: Orders should display their status on the My Orders page and the Order Details Page. Let's add a new feature to the site that will allow authenticated users to view the current status of their orders.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |