Exemplo n.º 1
0
        public async Task <IActionResult> TaskDelete(Guid id, Guid boardId)
        {
            var request = new TaskDeleteRequest
            {
                UserId  = this.GetUserId(),
                Id      = id,
                BoardId = boardId
            };

            var response = await _activitiesService.TaskDelete(request);

            return(Ok(response));
        }
Exemplo n.º 2
0
        public async System.Threading.Tasks.Task Consume(ConsumeContext <TaskDeleteRequest> context)
        {
            var response = await _activitiesService.TaskDelete(context.Message);

            await context.RespondAsync(response);
        }