public static string OriginalImage(object ImagePath) { if (ImagePath == null) { return(string.Empty); } return(BizUtils.GetConfig(Consts.KeyName.AdminServer.ToString()) + ImagePath.ToString()); }
public static string ThumbImage(object ImagePath) { if (ImagePath == null) { return(string.Empty); } if (ImagePath.ToString().StartsWith("/")) { return(BizUtils.GetConfig(Consts.KeyName.AdminServer.ToString()) + ImagePath.ToString().ToLower().Replace("uploads/", "uploads/_thumbs/")); } else { return(BizUtils.GetConfig(Consts.KeyName.AdminServer.ToString()) + ImagePath.ToString().ToLower().Replace("uploads/", "/uploads/_thumbs/")); } }