protected ActionResult Result(object result = null)
        {
            if (_notificator.HasNotification())
            {
                return(ResponseError(result));
            }

            return(ResponseSuccess(result));
        }
Example #2
0
        protected ActionResult Result(object result = null)
        {
            if (_notificator.HasNotification())
            {
                return(ResponseError());
            }

            return(Ok(new
            {
                success = true,
                data = result
            }));
        }