Ejemplo n.º 1
0
        public async Task <ActionResult> UpdateItemDetails(int id, UpdateIssueStatusCommand command)
        {
            if (id != command.Id)
            {
                return(BadRequest());
            }

            await Mediator.Send(command);

            return(NoContent());
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> UpdateProject(string id, [FromBody] UpdateIssueStatusCommand updateIssueStatusCommand)
        {
            await _mediator.Publish(
                new UpdateIssueStatusCommand
            {
                Status = updateIssueStatusCommand.Status,
                Id     = id
            });

            return(Ok());
        }