Class BackOfficeNotificationsController
- Namespace
- Umbraco.Cms.Web.BackOffice.Controllers
- Assembly
- Umbraco.Web.BackOffice.dll
An abstract controller that automatically checks if any request is a non-GET and if the resulting message is INotificationModel in which case it will append any Event Messages currently in the request.
[PrefixlessBodyModelValidator]
public abstract class BackOfficeNotificationsController : UmbracoAuthorizedJsonController
- Inheritance
-
BackOfficeNotificationsController
- Derived
- Inherited Members
Constructors
BackOfficeNotificationsController()
protected BackOfficeNotificationsController()
Methods
Ok(string)
returns a 200 OK response with a notification message
protected OkObjectResult Ok(string message)
Parameters
messagestring
Returns
ValidationProblem()
Overridden to ensure that all queued notifications are sent to the back office
[NonAction]
public override ActionResult ValidationProblem()
Returns
ValidationProblem(string?)
Overridden to ensure that the error message is an error notification message
protected override ActionResult ValidationProblem(string? errorMessage)
Parameters
errorMessagestring
Returns
ValidationProblem(string?, string)
Creates a notofication validation problem with a header and message
protected ActionResult ValidationProblem(string? errorHeader, string errorMessage)