public static string getCurrencySymbol(EntityReference currencyid)
        {
            if (currencyid != null && currencyid.Id != null && currencyid.Id.Value != null)
            {
                return(NumberEx.GetCurrencySymbol(currencyid.Id));
            }

            return(string.Empty);
        }
        public static string getCurrencySymbol(Func <object> valueAccessor)
        {
            EntityReference value = (EntityReference)KnockoutUtils.UnwrapObservable(valueAccessor());

            if (value != null)
            {
                return(NumberEx.GetCurrencySymbol(value.Id));
            }

            return(string.Empty);
        }