Class BackOfficeNotificationsController
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.
Inheritance
System.Object
      Microsoft.AspNetCore.Mvc.ControllerBase
      
      
      
      
      Namespace: Umbraco.Cms.Web.BackOffice.Controllers
Assembly: Umbraco.Web.BackOffice.dll
Syntax
[PrefixlessBodyModelValidator]
public abstract class BackOfficeNotificationsController : UmbracoAuthorizedJsonController
  Methods
View SourceOk(String)
returns a 200 OK response with a notification message
Declaration
protected OkObjectResult Ok(string message)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | message | 
Returns
| Type | Description | 
|---|---|
| Microsoft.AspNetCore.Mvc.OkObjectResult | 
ValidationProblem()
Overridden to ensure that all queued notifications are sent to the back office
Declaration
[NonAction]
public override ActionResult ValidationProblem()
  Returns
| Type | Description | 
|---|---|
| Microsoft.AspNetCore.Mvc.ActionResult | 
ValidationProblem(String)
Overridden to ensure that the error message is an error notification message
Declaration
protected override ActionResult ValidationProblem(string errorMessage)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | errorMessage | 
Returns
| Type | Description | 
|---|---|
| Microsoft.AspNetCore.Mvc.ActionResult | 
ValidationProblem(String, String)
Creates a notofication validation problem with a header and message
Declaration
protected ActionResult ValidationProblem(string errorHeader, string errorMessage)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | errorHeader | |
| System.String | errorMessage | 
Returns
| Type | Description | 
|---|---|
| Microsoft.AspNetCore.Mvc.ActionResult |