2024-04-22 13:33:39 +03:30
|
|
|
|
using Netina.Domain.MartenEntities.Pages;
|
2024-02-13 12:22:58 +03:30
|
|
|
|
using Newtonsoft.Json;
|
2024-02-12 22:01:15 +03:30
|
|
|
|
|
2024-04-16 20:01:34 +03:30
|
|
|
|
namespace Netina.Domain.Dtos.SmallDtos;
|
2024-02-12 22:01:15 +03:30
|
|
|
|
|
2024-04-01 13:05:11 +03:30
|
|
|
|
public class BasePageSDto : BaseDto<BasePageSDto,BasePage>
|
2024-02-12 22:01:15 +03:30
|
|
|
|
{
|
|
|
|
|
|
public string Name { 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;
|
2024-02-13 12:22:58 +03:30
|
|
|
|
public string Data { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
public T GetData<T>() => JsonConvert.DeserializeObject<T>(Data);
|
2024-02-12 22:01:15 +03:30
|
|
|
|
}
|