public static HtmlString ToBadge(this Core.Entities.CampaignAccountContentStatus accountType) { var type = "danger"; if (accountType == CampaignAccountContentStatus.ChoDuyet) { type = "primary"; } else if (accountType == CampaignAccountContentStatus.DaDuyet) { type = "success"; } return(new HtmlString($"<i class='fas fa-circle text-{type}'></i> <span>{accountType.ToDisplayName()}</span>")); }
public static HtmlString ToBadge(this Core.Entities.CampaignAccountContentStatus accountType) { var type = "danger"; if (accountType == CampaignAccountContentStatus.ChoDuyet) { type = "warning"; } else if (accountType == CampaignAccountContentStatus.DaDuyet) { type = "success"; } return(new HtmlString($"<span class='badge badge-{type}'>{accountType.ToDisplayName()}</span>")); }