private string GetFriendlyStatusName(PageInstanceStatus status) {
     switch (status) {
         case PageInstanceStatus.Archived:
             return "Archived";
         case PageInstanceStatus.Published:
             return "Published";
         case PageInstanceStatus.WorkingCopy:
             return "Working copy";
         default:
             return "- Unknown -";
     }
 }
Example #2
0
        private string GetFriendlyStatusName(PageInstanceStatus status)
        {
            switch (status)
            {
            case PageInstanceStatus.Archived:
                return("Archived");

            case PageInstanceStatus.Published:
                return("Published");

            case PageInstanceStatus.WorkingCopy:
                return("Working copy");

            default:
                return("- Unknown -");
            }
        }
 internal static PageInstanceEntity GetByStatus(Guid pageId, int languageId, PageInstanceStatus status) {
     return DataManager.FirstOrDefault<PageInstanceEntity>(p => p.Status == status && p.PageId == pageId && p.LanguageId == languageId);
 }
 internal static PageInstanceEntity GetByStatus(Guid pageId, int languageId, PageInstanceStatus status)
 {
     return(DataManager.FirstOrDefault <PageInstanceEntity>(p => p.Status == status && p.PageId == pageId && p.LanguageId == languageId));
 }