Ejemplo n.º 1
0
        public async Task <HttpResponseMessage> signalRPushPostComment(PostComment postComment)
        {
            PostComment data = postComment;

            try
            {
                ApiResponseModel <PostComment> model = new ApiResponseModel <PostComment>()
                {
                };

                model.data.records = data;
                MessagingHub.sendPostComments(data);
                return(Response.Success <PostComment>(model));
            }
            catch (Exception ex)
            {
                return(Response.Exception(ex));
            }
        }