-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlogViewModel.cs
More file actions
36 lines (27 loc) · 1.02 KB
/
Copy pathBlogViewModel.cs
File metadata and controls
36 lines (27 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using BlogEngine.Core.Models;
using System.Web;
namespace BlogEngine.Core.ViewModels
{
public class BlogViewModel
{
public int UserId { get; set; }
public int BlogId { get; set; }
public DateTime DateCreated { get; set; }
public string SelectedCategory { get; set; }
public IEnumerable<SelectListItem> Categories { get; set; }
public List<TagCheckViewModel> Tags { get; set; }
[Required(ErrorMessage="A short blog description is required")]
public string BlogShortDescription { get; set; }
[Required(ErrorMessage="The blog entry is required")]
[AllowHtml]
//[UIHint("tinymce_jquery_full"), AllowHtml]
public string BlogEntryText { get; set; }
[Required(ErrorMessage="A blog title is required")]
public string BlogTitle { get; set; }
public HttpPostedFileBase BlogImage { get; set; }
}
}