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:
2025-12-15 15:07:47 +01:00
parent 4e209e29fc
commit 5a4d2d8553
2 changed files with 5 additions and 3 deletions

View File

@@ -1,4 +1,6 @@
namespace ReC.Domain.Entities;
using ReC.Domain.Constants;
namespace ReC.Domain.Entities;
public record ProfileView
{
@@ -6,7 +8,7 @@ public record ProfileView
public bool Active { get; init; }
public byte TypeId { get; init; }
public ProfileType TypeId { get; init; }
public string? Type { get; init; }

View File

@@ -26,7 +26,7 @@ public class RecActionView
public string? ProfileName { get; set; }
public byte? ProfileType { get; set; }
public ProfileType? ProfileType { get; set; }
public byte? Sequence { get; set; }