Skip to content

Commit 46534d5

Browse files
CESARDLCESARDL
authored andcommitted
Minor refactoring
1 parent 289d15b commit 46534d5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Services/Ordering/Ordering.API/Controllers/OrdersController.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public OrdersController(IMediator mediator, IOrderQueries orderQueries, IIdentit
4242

4343
[Route("new")]
4444
[HttpPost]
45-
public async Task<IActionResult> AddOrder([FromBody]CreateOrderCommand createOrderCommand)
45+
public async Task<IActionResult> CreateOrder([FromBody]CreateOrderCommand createOrderCommand)
4646
{
4747
if (createOrderCommand.CardTypeId == 0)
4848
{
@@ -51,8 +51,8 @@ public async Task<IActionResult> AddOrder([FromBody]CreateOrderCommand createOrd
5151

5252
createOrderCommand.BuyerIdentityGuid = _identityService.GetUserIdentity();
5353

54-
var added = await _mediator.SendAsync(createOrderCommand);
55-
if (added)
54+
var result = await _mediator.SendAsync(createOrderCommand);
55+
if (result)
5656
{
5757
return Ok();
5858
}

0 commit comments

Comments
 (0)