public async Task <IActionResult> TaskGet(Guid id, Guid boardId) { var request = new TaskGetRequest { Id = id, BoardId = boardId, UserId = this.GetUserId() }; var response = await _activitiesService.TaskGet(request); return(Ok(response)); }
public async System.Threading.Tasks.Task Consume(ConsumeContext <TaskGetRequest> context) { var response = await _activitiesService.TaskGet(context.Message); await context.RespondAsync(response); }