|
namespace WebPageExtensionSample.Model
{
using System.ComponentModel;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
public class Category
{
public int Id { get; set; }
[DisplayName("Category name: ")]
[Required(ErrorMessage = "Category name is required.")]
public string Name { get; set; }
[DisplayName("Parent category: ")]
public int ParentId { get; set; }
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I work as a Technology Specialist in Cognizant Technology Solutions. I have 1.5 decades of experience in Software Development and focuses on Microsoft Web Technologies, JavaScript Frameworks, Azure Services and DevOps