api/NetinaCMS.Domain/Models/Claims/ClaimDto.cs

17 lines
667 B
C#
Raw Normal View History

2024-03-24 12:35:42 +03:30
namespace NetinaCMS.Domain.Models.Claims;
2024-03-09 19:53:01 +03:30
public class ClaimDto : INotifyPropertyChanged
{
public string Value { get; set; } = string.Empty;
public string Type { get; set; } = string.Empty;
public string Title { get; set; } = string.Empty;
public string Detail { get; set; } = string.Empty;
public bool IsSelected { get; set; } = false;
public event PropertyChangedEventHandler? PropertyChanged;
protected virtual void OnPropertyChanged([CallerMemberName] string? propertyName = null)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
public Claim GetClaim => new Claim(Type, Value);
}