예제 #1
0
        public async Task <IActionResult> BoardCreate(BoardCreateRequest boardCreateRequest)
        {
            boardCreateRequest.UserId = this.GetUserId();

            var boardCreateResult = await _activitiesService.BoardCreate(boardCreateRequest);

            return(Created(string.Empty, boardCreateResult));
        }
예제 #2
0
        public async System.Threading.Tasks.Task Consume(ConsumeContext <BoardCreateRequest> context)
        {
            var response = await _activitiesService.BoardCreate(context.Message);

            await context.RespondAsync(response);
        }