Minor improvements and quality refactoring
This commit is contained in:
parent
9e2565d110
commit
4d6f9092eb
7 changed files with 16 additions and 11 deletions
|
@ -10,7 +10,7 @@ public sealed class OrderModel {
|
|||
|
||||
public OrderModel(OrderDto orderDTO) {
|
||||
OrderId = orderDTO.OrderId;
|
||||
OrderDescription = orderDTO.Description;
|
||||
OrderDescription = orderDTO.Description.Trim();
|
||||
CustomerId = orderDTO.CustomerId;
|
||||
TotalPrice = orderDTO.Products.Select(product => product.Price).Sum();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue