public static HtmlString ToHTML(this UserStatus status) { switch (status) { case UserStatus.BLOCKED: return(new HtmlString($"<i class='mdi mdi-account-minus text-danger'></i> {status.ToEnumString()}")); case UserStatus.ACTIVE: return(new HtmlString($"<i class='mdi mdi-account-check text-primary'></i> {status.ToEnumString()}")); case UserStatus.UNAUTHORIZED: return(new HtmlString($"<i class='mdi mdi-account-minus'></i> {status.ToEnumString()}")); default: break; } return(new HtmlString("")); }