public PostsListModel(PageViewModelContext context, Post <string>[] items, int totalItems, int page, int itemsPerPage,
                       StorageItem logo, StorageItem logoSmall) :
     base(context, items, totalItems, page, itemsPerPage)
 {
     Logo      = logo;
     LogoSmall = logoSmall;
 }
Exemplo n.º 2
0
 public PostViewModel(PageViewModelContext context, Post <TUserPk> entity, int commentsCount,
                      Uri commentsUri,
                      ContentEntityViewMode mode = ContentEntityViewMode.List) :
     base(context, entity, mode)
 {
     CommentsCount = commentsCount;
     CommentsUri   = commentsUri;
 }
Exemplo n.º 3
0
        protected virtual PageViewModelContext GetPageContext()
        {
            var context = new PageViewModelContext(LinkGenerator, PropertiesProvider, Site, Version);

            return(context);
        }
Exemplo n.º 4
0
 public ErrorsViewModel(PageViewModelContext context, int errorCode) : base(context)
 {
     ErrorCode = errorCode;
 }