public static string GetMediaUrl(dynamic model, string imageFieldName) { try { if (model != null && model.imageFieldName != null && model.Media(imageFieldName) != null) { return model.Media(imageFieldName).umbracoFile; } return string.Empty; } catch (Exception ex) { Log.Error(typeof(MediaHelper), ex); return string.Empty; } }