Made FromJsonPathAttribute public

Signed-off-by: Bjarke Berg <mail@bergmania.dk>
This commit is contained in:
Bjarke Berg
2020-06-26 08:20:50 +02:00
parent e181c94cf4
commit c369647f10

View File

@@ -23,7 +23,7 @@ namespace Umbraco.Web.BackOffice.ModelBinders
/// normal json formatter will not figure this out.
/// This would also let you bind sub levels of the JSON being sent up too if you wanted with any jsonpath
/// </remarks>
internal class FromJsonPathAttribute : ModelBinderAttribute
public class FromJsonPathAttribute : ModelBinderAttribute
{
public FromJsonPathAttribute() : base(typeof(JsonPathBinder))
{
@@ -40,7 +40,7 @@ namespace Umbraco.Web.BackOffice.ModelBinders
}
var strJson = bindingContext.HttpContext.Request.GetRawBodyString();
var strJson = await bindingContext.HttpContext.Request.GetRawBodyStringAsync();
if (string.IsNullOrWhiteSpace(strJson))