Search Results for

    Show / Hide Table of Contents
    View Source

    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
    UmbracoApiControllerBase
    UmbracoApiController
    UmbracoAuthorizedApiController
    UmbracoAuthorizedJsonController
    Namespace: Umbraco.Cms.Web.BackOffice.Controllers
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    [PrefixlessBodyModelValidator]
    public abstract class BackOfficeNotificationsController : UmbracoAuthorizedJsonController

    Methods

    View Source

    Ok(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
    View Source

    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
    View Source

    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
    View Source

    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
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Ok(String)
      • ValidationProblem()
      • ValidationProblem(String)
      • ValidationProblem(String, String)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX