Files
Orchard/src/Orchard.Web/Packages/Orchard.Comments/ViewModels/CommentsIndexViewModel.cs

37 lines
931 B
C#
Raw Normal View History

using System.Collections.Generic;
using Orchard.Comments.Models;
using Orchard.Mvc.ViewModels;
namespace Orchard.Comments.ViewModels {
public class CommentsIndexViewModel : AdminViewModel {
public IList<CommentEntry> Comments { get; set; }
public CommentIndexOptions Options { get; set; }
}
public class CommentEntry {
public Comment Comment { get; set; }
public string CommentedOn { get; set; }
public bool IsChecked { get; set; }
}
public class CommentIndexOptions {
public CommentIndexFilter Filter { get; set; }
public CommentIndexBulkAction BulkAction { get; set; }
}
public enum CommentIndexBulkAction {
None,
Pend,
Approve,
MarkAsSpam,
Delete
}
public enum CommentIndexFilter {
All,
Pending,
Approved,
Spam,
}
}