public static string GetPackageStatusName(int statusId) { string statusKey = ((PackageStatus)statusId).ToString(); return(PortalUtils.GetSharedLocalizedString(Utils.ModuleName, "PackageStatus." + statusKey)); }
public static string GetAccountStatusName(int statusId) { string statusKey = ((UserStatus)statusId).ToString(); return(PortalUtils.GetSharedLocalizedString(Utils.ModuleName, "AccountStatus." + statusKey)); }
public static string GetUserRoleName(int roleId) { string roleKey = ((UserRole)roleId).ToString(); return(PortalUtils.GetSharedLocalizedString(Utils.ModuleName, "PanelRole." + roleKey)); }
public static string GetLocalizedResourceGroupName(string groupName) { return(PortalUtils.GetSharedLocalizedString(Utils.ModuleName, String.Format("ResourceGroup.{0}", groupName))); }
public static string GetYesNo(bool flag) { return(PortalUtils.GetSharedLocalizedString(Utils.ModuleName, "YesNo." + flag.ToString())); }
public string GetSharedLocalizedString(string moduleName, string resourceKey) { return(PortalUtils.GetSharedLocalizedString(moduleName, resourceKey)); }