namespace OmsorgCore.Application.Services;

public enum UpdateUserFailureReason
{
    UserNotFound,
    RoleNotFound
}

public class UpdateUserResult
{
    public bool Success { get; init; }
    public UpdateUserFailureReason? FailureReason { get; init; }

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

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