From 49cf0f98ce5622e0e7bda6eda071757e811f7994 Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 28 Mar 2014 08:31:21 +1100 Subject: [PATCH] U4-1752 - Add GetPreValueAsString(id) method to the @Umbraco helper --- src/Umbraco.Web/UmbracoHelper.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Umbraco.Web/UmbracoHelper.cs b/src/Umbraco.Web/UmbracoHelper.cs index 03b0aaf93d..b722dea423 100644 --- a/src/Umbraco.Web/UmbracoHelper.cs +++ b/src/Umbraco.Web/UmbracoHelper.cs @@ -1379,6 +1379,16 @@ namespace Umbraco.Web #endregion + #region Prevalues + + public string GetPreValueAsString(int id) + { + var ds = UmbracoContext.Application.Services.DataTypeService; + return ds.GetPreValueAsString(id); + } + + #endregion + /// /// This is used in methods like BeginUmbracoForm and SurfaceAction to generate an encrypted string which gets submitted in a request for which /// Umbraco can decrypt during the routing process in order to delegate the request to a specific MVC Controller.