Adding work items

Let's add work items by performing the following steps:

  1. To add work items, let's start off by adding a class to our Models folder called AddWorkItem, as shown in the following screenshot:
  1. 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; } 
}
  1. 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 ...

Get C# 7 and .NET Core 2.0 Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.