18 lines
656 B
C#
18 lines
656 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace Netina.Domain.Dtos.SmallDtos;
|
|
|
|
public class BasePageSDto : BaseDto<BasePageSDto,BasePage>
|
|
{
|
|
public string Title { get; set; } = string.Empty;
|
|
public string Description { get; set; } = string.Empty;
|
|
public string Content { get; set; } = string.Empty;
|
|
public bool IsCustomPage { get; set; }
|
|
public bool IsHtmlBasePage { get; set; }
|
|
public string Slug { get; set; } = string.Empty;
|
|
public string Data { get; set; } = string.Empty;
|
|
public DateTime ModifiedAt { get; set; }
|
|
public bool Indexing { get; set; } = true;
|
|
|
|
public T GetData<T>() => JsonConvert.DeserializeObject<T>(Data);
|
|
} |