diff --git a/src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedApiController.cs b/src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedApiController.cs index a370f48ebe..826527aa1f 100644 --- a/src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedApiController.cs +++ b/src/Umbraco.Web.BackOffice/Controllers/UmbracoAuthorizedApiController.cs @@ -116,7 +116,16 @@ namespace Umbraco.Cms.Web.BackOffice.Controllers /// /// /// - protected virtual ActionResult ValidationProblem(object value, int statusCode = StatusCodes.Status400BadRequest) + protected virtual ActionResult ValidationProblem(object value, int statusCode) => new ValidationErrorResult(value, statusCode); + + /// + /// Returns an Umbraco compatible validation problem for the given notification model + /// + /// + /// + /// + protected virtual ActionResult ValidationProblem(INotificationModel model, int statusCode = StatusCodes.Status400BadRequest) + => new ValidationErrorResult(model, statusCode); } }