From 2c6fe34cdd7b56b00dff993eb84454c45a4a3d22 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Mon, 21 Jan 2019 10:33:41 +0300 Subject: [PATCH] microservice demo: removed "code" from updates --- .../MyCompanyName/ProductManagement/UpdateProductDto.cs | 2 -- .../Pages/ProductManagement/Products/Edit.cshtml.cs | 5 ----- 2 files changed, 7 deletions(-) diff --git a/samples/MicroserviceDemo/modules/product/src/ProductManagement.Application.Contracts/MyCompanyName/ProductManagement/UpdateProductDto.cs b/samples/MicroserviceDemo/modules/product/src/ProductManagement.Application.Contracts/MyCompanyName/ProductManagement/UpdateProductDto.cs index 38b58f8052..aa96bf9c51 100644 --- a/samples/MicroserviceDemo/modules/product/src/ProductManagement.Application.Contracts/MyCompanyName/ProductManagement/UpdateProductDto.cs +++ b/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; } diff --git a/samples/MicroserviceDemo/modules/product/src/ProductManagement.Web/Pages/ProductManagement/Products/Edit.cshtml.cs b/samples/MicroserviceDemo/modules/product/src/ProductManagement.Web/Pages/ProductManagement/Products/Edit.cshtml.cs index 3b864b6c6a..18170c9fd2 100644 --- a/samples/MicroserviceDemo/modules/product/src/ProductManagement.Web/Pages/ProductManagement/Products/Edit.cshtml.cs +++ b/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; }