Adding work items

Let's add work items by going through 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, select Add, and then click on View

Get C# 8 and .NET Core 3 Projects Using Azure - Second Edition 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.