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 -"; } }
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)); }