diff --git a/LTS/LTS.API/Features/Followups/FollowupController.cs b/LTS/LTS.API/Features/Followups/FollowupController.cs index 3e3727a..1490ca6 100644 --- a/LTS/LTS.API/Features/Followups/FollowupController.cs +++ b/LTS/LTS.API/Features/Followups/FollowupController.cs @@ -17,21 +17,20 @@ public FollowupController(IMediator mediator) _mediator = mediator; } [HttpPost] - public async Task CreateFollowup([FromQuery] CreateFollowupCommand command) + public async Task CreateFollowup([FromBody] CreateFollowupCommand command) { var result = await _mediator.Send(command); return Ok(result); } - - [HttpGet] - public async Task GetAll([FromQuery] GetFollowupsByCaseQuery query) + [HttpGet("{caseId}")] + public async Task GetByCase(Guid caseId) { - var result = await _mediator.Send(query); + var result = await _mediator.Send(new GetFollowupsByCaseQuery(caseId)); return Ok(result); } [HttpPut] - public async Task Update([FromQuery] UpdateFollowupCommand command) + public async Task Update([FromBody] UpdateFollowupCommand command) { var result = await _mediator.Send(command); return Ok(result);