Esempio n. 1
0
        public async Task <IActionResult> TaskCreate(TaskCreateRequest taskCreateRequest)
        {
            taskCreateRequest.UserId = this.GetUserId();

            var taskCreateResult = await _activitiesService.TaskCreate(taskCreateRequest);

            return(Created(string.Empty, taskCreateResult));
        }
Esempio n. 2
0
        public async System.Threading.Tasks.Task Consume(ConsumeContext <TaskCreateRequest> context)
        {
            var response = await _activitiesService.TaskCreate(context.Message);

            await context.RespondAsync(response);
        }