Merge pull request #301 from Jeavon/U4-1752

U4-1752 - Add GetPreValueAsString(id) method to the @Umbraco helper
This commit is contained in:
Shandem
2014-03-28 08:21:32 +11:00

View File

@@ -1289,6 +1289,16 @@ namespace Umbraco.Web
#endregion
#region Prevalues
public string GetPreValueAsString(int id)
{
var ds = UmbracoContext.Application.Services.DataTypeService;
return ds.GetPreValueAsString(id);
}
#endregion
/// <summary>
/// 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.