public async Task <IActionResult> TaskUpdate(TaskUpdateRequest request) { request.UserId = this.GetUserId(); var response = await _activitiesService.TaskUpdate(request); return(Ok(response)); }
public async System.Threading.Tasks.Task Consume(ConsumeContext <TaskUpdateRequest> context) { var response = await _activitiesService.TaskUpdate(context.Message); await context.RespondAsync(response); }