Example #1
0
        public async Task <IActionResult> BoardDelete(Guid id)
        {
            var boardDeleteRequest = new BoardDeleteRequest {
                Id = id, UserId = this.GetUserId()
            };

            var boardDeletedResult = await _activitiesService.BoardDelete(boardDeleteRequest);

            return(Ok(boardDeletedResult));
        }
Example #2
0
        public async System.Threading.Tasks.Task Consume(ConsumeContext <BoardDeleteRequest> context)
        {
            var response = await _activitiesService.BoardDelete(context.Message);

            await context.RespondAsync(response);
        }