mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00

--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4042252
15 lines
642 B
C#
15 lines
642 B
C#
using System;
|
|
using Orchard.Core.Common.Models;
|
|
using Orchard.Models;
|
|
using Orchard.Security;
|
|
|
|
namespace Orchard.Blogs.Models {
|
|
public class BlogPost : ContentPart<BlogPostRecord> {
|
|
//public Blog Blog { get; set; }
|
|
public string Title { get { return this.As<RoutableAspect>().Title; } }
|
|
public string Body { get { return this.As<BodyAspect>().Body; } }
|
|
public string Slug { get { return this.As<RoutableAspect>().Slug; } }
|
|
public IUser Creator { get { return this.As<CommonAspect>().OwnerField.Value; } }
|
|
public DateTime? Published { get { return Record.Published; } }
|
|
}
|
|
} |