From b57722cfb6e09bea513fa8e4556d55055949fb1d Mon Sep 17 00:00:00 2001 From: gdlcf88 <47396430@qq.com> Date: Sat, 2 May 2020 19:15:54 +0800 Subject: [PATCH] Close #21: Change NotImplementedException to NotSupportedException --- .../ProductDetailHistoryAppService.cs | 6 +++--- .../Products/ProductDetails/ProductDetailAppService.cs | 2 +- .../Products/ProductHistories/ProductHistoryAppService.cs | 6 +++--- .../EasyAbp/EShop/Products/Products/ProductAppService.cs | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductDetailHistories/ProductDetailHistoryAppService.cs b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductDetailHistories/ProductDetailHistoryAppService.cs index ef8d5bff..b76ae1b1 100644 --- a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductDetailHistories/ProductDetailHistoryAppService.cs +++ b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductDetailHistories/ProductDetailHistoryAppService.cs @@ -35,19 +35,19 @@ namespace EasyAbp.EShop.Products.ProductDetailHistories [RemoteService(false)] public override Task CreateAsync(object input) { - throw new NotImplementedException(); + throw new NotSupportedException(); } [RemoteService(false)] public override Task UpdateAsync(Guid id, object input) { - throw new NotImplementedException(); + throw new NotSupportedException(); } [RemoteService(false)] public override Task DeleteAsync(Guid id) { - throw new NotImplementedException(); + throw new NotSupportedException(); } } } \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductDetails/ProductDetailAppService.cs b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductDetails/ProductDetailAppService.cs index bebc0e4b..99dd12b3 100644 --- a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductDetails/ProductDetailAppService.cs +++ b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductDetails/ProductDetailAppService.cs @@ -65,7 +65,7 @@ namespace EasyAbp.EShop.Products.ProductDetails [RemoteService(false)] public override Task DeleteAsync(Guid id) { - throw new NotImplementedException(); + throw new NotSupportedException(); } protected virtual async Task CheckStoreIsProductOwnerAsync(Guid productId, Guid storeId) diff --git a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductHistories/ProductHistoryAppService.cs b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductHistories/ProductHistoryAppService.cs index f5009803..6109f84e 100644 --- a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductHistories/ProductHistoryAppService.cs +++ b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductHistories/ProductHistoryAppService.cs @@ -35,19 +35,19 @@ namespace EasyAbp.EShop.Products.ProductHistories [RemoteService(false)] public override Task CreateAsync(object input) { - throw new NotImplementedException(); + throw new NotSupportedException(); } [RemoteService(false)] public override Task UpdateAsync(Guid id, object input) { - throw new NotImplementedException(); + throw new NotSupportedException(); } [RemoteService(false)] public override Task DeleteAsync(Guid id) { - throw new NotImplementedException(); + throw new NotSupportedException(); } } } \ No newline at end of file diff --git a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Products/ProductAppService.cs b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Products/ProductAppService.cs index d7893e57..4cedf888 100644 --- a/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Products/ProductAppService.cs +++ b/modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Products/ProductAppService.cs @@ -199,14 +199,14 @@ namespace EasyAbp.EShop.Products.Products [RemoteService(false)] public override Task DeleteAsync(Guid id) { - throw new NotImplementedException(); + throw new NotSupportedException(); } [Obsolete("Should use GetAsync(Guid id, Guid storeId)")] [RemoteService(false)] public override Task GetAsync(Guid id) { - throw new NotImplementedException(); + throw new NotSupportedException(); } public virtual async Task GetAsync(Guid id, Guid storeId)