Creating a Model
As usual, we need to create an object model in our project. Let's name it with Product.
Product has 4 attributes, there are Id, Name, Genre, and Price.
public class Product
{
public int Id { get; set; }
public string Name { get; set; }
public string Genre { get; set; }
public int Price { get; set; }
}