Snootalogue/ViewModels/EditDocument.cs

24 lines
623 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
// a version of the Document model designed for user editing
namespace Snootalogue.ViewModels {
public class EditDocument {
[Required]
public string ID { get; set; }
[Required]
public string Title { get; set; }
2020-09-18 05:35:20 +00:00
[Required]
[Display(Name = "Authors (comma separated)")]
public string Authors { get; set; }
[Required]
public string Category { get; set; }
2020-09-18 05:35:20 +00:00
[Display(Name = "Tags (comma separated)")]
public string Tags { get; set; }
public Boolean Read { get; set; }
public string Notes { get; set; }
}
}