Fix warnings
This commit is contained in:
parent
51359dea94
commit
edd72d2160
@ -7,7 +7,6 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.B
|
|||||||
public class PaymentMethod
|
public class PaymentMethod
|
||||||
: Entity
|
: Entity
|
||||||
{
|
{
|
||||||
private int _buyerId;
|
|
||||||
private string _alias;
|
private string _alias;
|
||||||
private string _cardNumber;
|
private string _cardNumber;
|
||||||
private string _securityNumber;
|
private string _securityNumber;
|
||||||
|
@ -12,7 +12,6 @@ namespace Microsoft.eShopOnContainers.Services.Ordering.Domain.AggregatesModel.O
|
|||||||
// aligned with DDD Aggregates and Domain Entities (Instead of properties and property collections)
|
// aligned with DDD Aggregates and Domain Entities (Instead of properties and property collections)
|
||||||
private string _productName;
|
private string _productName;
|
||||||
private string _pictureUrl;
|
private string _pictureUrl;
|
||||||
private int _orderId;
|
|
||||||
private decimal _unitPrice;
|
private decimal _unitPrice;
|
||||||
private decimal _discount;
|
private decimal _discount;
|
||||||
private int _units;
|
private int _units;
|
||||||
|
@ -49,7 +49,7 @@ namespace Microsoft.eShopOnContainers.WebMVC.Controllers
|
|||||||
return RedirectToAction("Index");
|
return RedirectToAction("Index");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch(BrokenCircuitException ex)
|
catch(BrokenCircuitException)
|
||||||
{
|
{
|
||||||
ModelState.AddModelError("Error", "It was not possible to create a new order, please try later on");
|
ModelState.AddModelError("Error", "It was not possible to create a new order, please try later on");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user