예제 #1
0
        public IActionResult GetAllMessages()
        {
            var response = new SampleResponse();

            response.AddNotification(_messageManager.GetMessage("AccountDoesntExists").GetNotification());
            response.AddNotification(_messageManager.GetMessage("AccountAmountNotTheSame").FormatValue("BRL", "EUR").GetNotification(true));
            response.AddNotification(_messageManager.GetMessage("AccountCurrencyDifferentCompensationCurrency").FormatValue("BRL", "USD").GetNotification());

            return(Ok(response));
        }
예제 #2
0
        public IActionResult GetMessage002()
        {
            var response = new SampleResponse();

            response.AddNotification(_messageManager.GetMessage("AccountAmountNotTheSame").FormatValue("BRL", "EUR").GetNotification(true));


            return(Ok(response));
        }
예제 #3
0
        public IActionResult GetMessage001()
        {
            var response = new SampleResponse();

            response.AddNotification(_messageManager.GetMessage("AccountDoesntExists").GetNotification());


            return(Ok(response));
        }