Files
ZelWiki/TightWiki.Models/DataModels/RelatedPage.cs
2025-01-22 23:31:03 +08:00

27 lines
731 B
C#

namespace TightWiki.Models.DataModels
{
public partial class RelatedPage
{
public int Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Navigation { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public int Matches { get; set; }
public int PaginationPageSize { get; set; }
public int PaginationPageCount { get; set; }
public string Title
{
get
{
if (Name.Contains("::"))
{
return Name.Substring(Name.IndexOf("::") + 2).Trim();
}
return Name;
}
}
}
}