open changes
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Wishlist.Models;
|
||||
|
||||
public class BlogPostViewModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required(AllowEmptyStrings = false, ErrorMessage = "Title can not be empty")]
|
||||
public string Title { get; set; } = string.Empty;
|
||||
|
||||
[Required(AllowEmptyStrings = false, ErrorMessage = "Content can not be empty")]
|
||||
public string Content { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user