Set AddedWho from config in Create; make property mutable

Changed AuthScope.AddedWho to be mutable (get; set;). In ResultViewController, set AddedWho from configuration in the Create action and throw an error if missing. Ensures AddedWho is always set and configuration issues are clearly reported.
This commit is contained in:
2025-12-17 11:51:48 +01:00
parent 752f781f54
commit a55b51e504
2 changed files with 3 additions and 1 deletions

View File

@@ -4,7 +4,7 @@ namespace ReC.Application.Common.Interfaces;
public record AuthScope
{
public string AddedWho { get; } = null!;
public string AddedWho { get; set; } = null!;
}
public interface IAuthScoped : IScoped<AuthScope>