Implementing bug logging
To allow the user to log bugs, you have to provide a UI for entering of the bug details and to implement some additional actions in the controllers. This section contains the steps that are required to implement such functionality:
- Create the Bug model.
In this step you create a model class representing your bug. It should provide the properties required for the creating of a new bug.
- Create the BugForm view.
In this step you create a view that contains a form. The form must provide input fields for the bug details.
- Create the CreateBug action.
In this step you add a new action to the BugController class. This action displays the view that contains the form for the logging of a bug.
- Create SaveBug action.
In this step you add a new action to the BugController class. This action saves the bug in the database and displays the BugMaster view.
- Modify the BugMaster view.
In this step you add a link in the BugMaster view. The link navigates to the BugForm view.