2026-01-21 15:07:20 +00:00
|
|
|
namespace RealCV.Application.Helpers;
|
2026-01-20 16:45:43 +01:00
|
|
|
|
|
|
|
|
public static class ScoreThresholds
|
|
|
|
|
{
|
|
|
|
|
public const int High = 70;
|
|
|
|
|
public const int Medium = 50;
|
|
|
|
|
|
|
|
|
|
public static string GetScoreClass(int score) => score switch
|
|
|
|
|
{
|
|
|
|
|
> High => "score-high",
|
|
|
|
|
>= Medium => "score-medium",
|
|
|
|
|
_ => "score-low"
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
public static string GetBadgeClass(int score) => score switch
|
|
|
|
|
{
|
|
|
|
|
> High => "bg-success",
|
|
|
|
|
>= Medium => "bg-warning text-dark",
|
|
|
|
|
_ => "bg-danger"
|
|
|
|
|
};
|
|
|
|
|
}
|