Browse Source

microservice demo: removed "code" from updates

pull/748/head
Yunus Emre Kalkan 7 years ago
parent
commit
2c6fe34cdd
  1. 2
      samples/MicroserviceDemo/modules/product/src/ProductManagement.Application.Contracts/MyCompanyName/ProductManagement/UpdateProductDto.cs
  2. 5
      samples/MicroserviceDemo/modules/product/src/ProductManagement.Web/Pages/ProductManagement/Products/Edit.cshtml.cs

2
samples/MicroserviceDemo/modules/product/src/ProductManagement.Application.Contracts/MyCompanyName/ProductManagement/UpdateProductDto.cs

@ -2,8 +2,6 @@
{
public class UpdateProductDto
{
public string Code { get; set; }
public string Name { get; set; }
public float Price { get; set; }

5
samples/MicroserviceDemo/modules/product/src/ProductManagement.Web/Pages/ProductManagement/Products/Edit.cshtml.cs

@ -38,7 +38,6 @@ namespace ProductManagement.Pages.ProductManagement.Products
{
await _productAppService.UpdateAsync(Product.Id, new UpdateProductDto()
{
Code = Product.Code,
Name = Product.Name,
Price = Product.Price,
StockCount = Product.StockCount
@ -51,10 +50,6 @@ namespace ProductManagement.Pages.ProductManagement.Products
[Required]
public Guid Id { get; set; }
[Required]
[StringLength(ProductConsts.MaxCodeLength)]
public string Code { get; set; }
[Required]
[StringLength(ProductConsts.MaxNameLength)]
public string Name { get; set; }

Loading…
Cancel
Save