Пример #1
0
        public static JsonResult Error(string errorMessage = "")
        {
            var data = JsReturnHelper.ReturnError(errorMessage);

            return(new JsonResult()
            {
                Data = data
            });
        }
Пример #2
0
        private static JsonResult Result(bool showMessage, string modalMessage, string modalTitle)
        {
            var data = JsReturnHelper.Return(new { ShowMessage = showMessage, ModalTitle = modalTitle, ModalMessage = modalMessage });

            return(new JsonResult()
            {
                Data = data
            });
        }