using System;
using System.ComponentModel.DataAnnotations;

namespace Qusion.WebApp.Areas.Qusion.Models.Blogs
{
    public class BlogEditModel
    {
        /// <summary>
        /// Gets or sets blog id.
        /// </summary>
        public Guid ID { get; set; }

        /// <summary>
        /// Gets or sets blog title.
        /// </summary>
        [Required(ErrorMessage = "blogs.required_title")]
        public string Title { get; set; }

        [Required(ErrorMessage = "blogs.required_alias")]
        public string Alias { get; set; }

        /// <summary>
        /// Gets or sets blogs summary.
        /// </summary>
        [Required(ErrorMessage = "blogs.required_summary")]
        public string Summary { get; set; }

        public DateTime? ExpiresOn { get; set; }
    }
}