Rename Profile*Procedure types to Profile*Command for clarity

Renamed InsertProfileProcedure, UpdateProfileProcedure, and DeleteProfileProcedure (and their handlers) to use the "Command" suffix for consistency. Updated all usages in controllers, handlers, and tests. No logic changes; only type names were updated for improved clarity.
This commit is contained in:
2026-03-24 11:39:04 +01:00
parent 4999beda3b
commit de503cac5b
7 changed files with 19 additions and 19 deletions

View File

@@ -23,7 +23,7 @@ public class ProfileController(IMediator mediator) : ControllerBase
/// <returns>The created profile identifier.</returns>
[HttpPost]
[ProducesResponseType(StatusCodes.Status201Created)]
public async Task<IActionResult> Post([FromBody] InsertProfileProcedure procedure, CancellationToken cancel)
public async Task<IActionResult> Post([FromBody] InsertProfileCommand procedure, CancellationToken cancel)
{
var id = await mediator.Send(procedure, cancel);
return CreatedAtAction(nameof(Get), new { id }, id);
@@ -37,7 +37,7 @@ public class ProfileController(IMediator mediator) : ControllerBase
/// <returns>No content on success.</returns>
[HttpPut]
[ProducesResponseType(StatusCodes.Status204NoContent)]
public async Task<IActionResult> Put([FromBody] UpdateProfileProcedure procedure, CancellationToken cancel)
public async Task<IActionResult> Put([FromBody] UpdateProfileCommand procedure, CancellationToken cancel)
{
await mediator.Send(procedure, cancel);
return NoContent();
@@ -51,7 +51,7 @@ public class ProfileController(IMediator mediator) : ControllerBase
/// <returns>No content on success.</returns>
[HttpDelete]
[ProducesResponseType(StatusCodes.Status204NoContent)]
public async Task<IActionResult> Delete([FromBody] DeleteProfileProcedure procedure, CancellationToken cancel)
public async Task<IActionResult> Delete([FromBody] DeleteProfileCommand procedure, CancellationToken cancel)
{
await mediator.Send(procedure, cancel);
return NoContent();