namespace OmsorgCore.Application.Services;

public enum RemovePermissionOverrideFailureReason
{
    UserNotFound,
    OverrideNotFound
}

public class RemovePermissionOverrideResult
{
    public bool Success { get; init; }
    public RemovePermissionOverrideFailureReason? FailureReason { get; init; }

    public static RemovePermissionOverrideResult Fail(RemovePermissionOverrideFailureReason reason) => new()
    {
        Success = false,
        FailureReason = reason
    };

    public static RemovePermissionOverrideResult Ok() => new() { Success = true };
}
