예제 #1
0
        public async Task <IActionResult> BoardGet(Guid id)
        {
            var boardGet = new BoardGetRequest {
                Id = id, UserId = this.GetUserId()
            };

            var boardGetResult = await _activitiesService.BoardGet(boardGet);

            return(Ok(boardGetResult));
        }
예제 #2
0
        public async System.Threading.Tasks.Task Consume(ConsumeContext <BoardGetRequest> context)
        {
            var response = await _activitiesService.BoardGet(context.Message);

            await context.RespondAsync(response);
        }