예제 #1
0
        public static MvcHtmlString FlagImage(this HtmlHelper helper, IHasCountry obj)
        {
            if (obj.CountryID == 0 || obj.CountryID == 117)
            {
                return(new MvcHtmlString(string.Format(@"<img src=""{0}/flags/nn.png"" alt=""Unknown Country"" />", Stgs.StaticRt)));
            }

            return(FlagImage(helper, AppLookups.Country(obj.CountryID)));
        }
 /// <summary>
 ///
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public static string CountryName(this IHasCountry entity)
 {
     return(cf.Caching.AppLookups.Country(entity.CountryID).Name);
 }