using System.ComponentModel.DataAnnotations; namespace bitforum.Models.Views { public class RoleFormViewModel { [Required, StringLength(256)] public string Name { get; set; } } }