C# Class Nop.Web.Controllers.BaseNopController

Inheritance: Controller
Mostra file Open project: emilianionascu/NopCommerce

Protected Methods

Method Description
AddNotification ( NotifyType type, string message, bool persistForTheNextRequest ) : void

Display notification

ErrorNotification ( Exception exception, bool persistForTheNextRequest = true, bool logException = true ) : void

Display error notification

ErrorNotification ( string message, bool persistForTheNextRequest = true ) : void

Display error notification

SuccessNotification ( string message, bool persistForTheNextRequest = true ) : void

Display success notification

Private Methods

Method Description
LogException ( Exception exc ) : void

Log exception

Method Details

AddNotification() protected method

Display notification
protected AddNotification ( NotifyType type, string message, bool persistForTheNextRequest ) : void
type NotifyType Notification type
message string Message
persistForTheNextRequest bool A value indicating whether a message should be persisted for the next request
return void

ErrorNotification() protected method

Display error notification
protected ErrorNotification ( Exception exception, bool persistForTheNextRequest = true, bool logException = true ) : void
exception System.Exception Exception
persistForTheNextRequest bool A value indicating whether a message should be persisted for the next request
logException bool A value indicating whether exception should be logged
return void

ErrorNotification() protected method

Display error notification
protected ErrorNotification ( string message, bool persistForTheNextRequest = true ) : void
message string Message
persistForTheNextRequest bool A value indicating whether a message should be persisted for the next request
return void

SuccessNotification() protected method

Display success notification
protected SuccessNotification ( string message, bool persistForTheNextRequest = true ) : void
message string Message
persistForTheNextRequest bool A value indicating whether a message should be persisted for the next request
return void