Api/NetinaShop.Domain/Models/Claims/ClaimDto.cs

21 lines
767 B
C#
Raw Normal View History

2023-12-16 20:25:12 +03:30
using System.ComponentModel;
using System.Runtime.CompilerServices;
using System.Security.Claims;
namespace NetinaShop.Domain.Models.Claims;
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)
2023-12-16 20:25:12 +03:30
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
public Claim GetClaim => new Claim(Type, Value);
}