vgquotes/Src/VideoGameQuotes.Web/Models/EditCategoryModel.cs

9 lines
287 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
namespace VideoGameQuotes.Web.Models {
public class EditCategoryModel {
public int CategoryId { get; set; }
[Required(ErrorMessage = "The category must have a name, queerball")]
public string CategoryName { get; set; }
}
}