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)); }
public async System.Threading.Tasks.Task Consume(ConsumeContext <BoardDeleteRequest> context) { var response = await _activitiesService.BoardDelete(context.Message); await context.RespondAsync(response); }