Example #1
0
        protected SignalrResponse Success(string message = "ok")
        {
            var errorsRootObject = new SignalrResponse {
                Message = message,
                Success = true
            };

            return(errorsRootObject);
        }
Example #2
0
        protected SignalrResponse Error(string errorMessage = "error", object errorData = null)
        {
            var errorsRootObject = new SignalrResponse {
                Message = errorMessage,
                Success = false,
                Data    = errorData
            };

            return(errorsRootObject);
        }