Let's add work items by performing the following steps:
- To add work items, let's start off by adding a class to our Models folder called AddWorkItem, as shown in the following screenshot:
- Modify the code in the class to essentially look like the WorkItem class:
public class AddWorkItem { public string Title { get; set; } public string Description { get; set; } public int Severity { get; set; } public string WorkItemType { get; set; } public string AssignedTo { get; set; } }
- Next, create a new folder under the Views folder called AddWorkItem. Right-click the AddWorkItem folder and select Add and then click on View in ...