Message Provider

The AUA framework contains two types of Message Box, namely Html Messagebox and Dialog Messagebox. If we use HtmlMessages in View.csHtml, messages will be displayed in Html in the right color, if we use DialogMessages, they will be displayed in dialog, and if both models are loaded in the view, they will be displayed as Html and dialog.


                
<div class="form-group">
    <partial name="MessageProvider/HtmlMessages/_AllHtmlMessage" />
</div>


@ * OR  * @


<div class="form-group">
    <partial name="MessageProvider/DialogMessages/_AllDialogMessage" />
</div>


In the controller, we can easily send the message to the view and display it.


                    
public IActionResult Index()
{

    NotifyMessage("** NotifyMessage **");

    SuccessMessage("** SuccessMessage **");

    ErrorMessage("** ErrorMessage **");

    WarningMessage("** WarningMessage **");

    Message("** Message **");
    
    return View();

}



Message Provider in youtube More videos

Message Provider in youtube More videos