namespace OmsorgCore.Application.Services;

public enum UpdateRolePermissionsFailureReason
{
    RoleNotFound
}

public class UpdateRolePermissionsResult
{
    public bool Success { get; init; }
    public UpdateRolePermissionsFailureReason? FailureReason { get; init; }

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

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