Update profile type fields to use ProfileType enum
Replaced byte/byte? with the strongly-typed ProfileType/ProfileType? enum for profile type fields in ProfileView and RecActionView. Added the necessary using directive for ReC.Domain.Constants. This improves type safety and code readability.
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
namespace ReC.Domain.Entities;
|
using ReC.Domain.Constants;
|
||||||
|
|
||||||
|
namespace ReC.Domain.Entities;
|
||||||
|
|
||||||
public record ProfileView
|
public record ProfileView
|
||||||
{
|
{
|
||||||
@@ -6,7 +8,7 @@ public record ProfileView
|
|||||||
|
|
||||||
public bool Active { get; init; }
|
public bool Active { get; init; }
|
||||||
|
|
||||||
public byte TypeId { get; init; }
|
public ProfileType TypeId { get; init; }
|
||||||
|
|
||||||
public string? Type { get; init; }
|
public string? Type { get; init; }
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ public class RecActionView
|
|||||||
|
|
||||||
public string? ProfileName { get; set; }
|
public string? ProfileName { get; set; }
|
||||||
|
|
||||||
public byte? ProfileType { get; set; }
|
public ProfileType? ProfileType { get; set; }
|
||||||
|
|
||||||
public byte? Sequence { get; set; }
|
public byte? Sequence { get; set; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user