Skip to content

Commit c79336c

Browse files
committed
2 parents 7a964ca + c247261 commit c79336c

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public async Task<IActionResult> CreateOrder([FromBody]CreateOrderCommand comman
4343
commandResult = await _mediator.SendAsync(command);
4444
}
4545

46-
return commandResult ? (StatusCodeResult)Ok() : (StatusCodeResult)BadRequest();
46+
return commandResult ? (IActionResult)Ok() : (IActionResult)BadRequest();
4747

4848
}
4949

src/Services/Ordering/Ordering.Domain/SeedWork/Entity.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ public override bool Equals(object obj)
5050
if (Object.ReferenceEquals(this, obj))
5151
return true;
5252

53+
if (this.GetType() != obj.GetType())
54+
return false;
55+
5356
Entity item = (Entity)obj;
5457

5558
if (item.IsTransient() || this.IsTransient())

0 commit comments

Comments
 (0)