Пример #1
0
        public static HtmlString ToBadge(this Core.Entities.CampaignAccountStatus status)
        {
            var type = "primary";

            if (status == CampaignAccountStatus.AccountRequest)
            {
                type = "light";
            }
            else
            {
                type = "info";
            }

            return(new HtmlString($"<span class='badge badge-{type}'>{status.ToDisplayName()}</span>"));
        }
Пример #2
0
        public static HtmlString ToAgencyBadge(this Core.Entities.CampaignAccountStatus status)
        {
            var type = "primary";

            if (status == CampaignAccountStatus.AccountRequest)
            {
                type = "light";
            }
            else
            {
                type = "info";
            }
            var text = status.ToDisplayName();

            if (status == CampaignAccountStatus.AgencyRequest)
            {
                text = "Chờ thành viên phản hồi";
            }

            return(new HtmlString($"<span class='badge badge-{type}'>{text}</span>"));
        }