Пример #1
0
        public async Task <IActionResult> TaskUpdate(TaskUpdateRequest request)
        {
            request.UserId = this.GetUserId();

            var response = await _activitiesService.TaskUpdate(request);

            return(Ok(response));
        }
Пример #2
0
        public async System.Threading.Tasks.Task Consume(ConsumeContext <TaskUpdateRequest> context)
        {
            var response = await _activitiesService.TaskUpdate(context.Message);

            await context.RespondAsync(response);
        }