Commit b57722cf authored by gdlcf88's avatar gdlcf88

Close #21: Change NotImplementedException to NotSupportedException

parent af143ef3
...@@ -35,19 +35,19 @@ namespace EasyAbp.EShop.Products.ProductDetailHistories ...@@ -35,19 +35,19 @@ namespace EasyAbp.EShop.Products.ProductDetailHistories
[RemoteService(false)] [RemoteService(false)]
public override Task<ProductDetailHistoryDto> CreateAsync(object input) public override Task<ProductDetailHistoryDto> CreateAsync(object input)
{ {
throw new NotImplementedException(); throw new NotSupportedException();
} }
[RemoteService(false)] [RemoteService(false)]
public override Task<ProductDetailHistoryDto> UpdateAsync(Guid id, object input) public override Task<ProductDetailHistoryDto> UpdateAsync(Guid id, object input)
{ {
throw new NotImplementedException(); throw new NotSupportedException();
} }
[RemoteService(false)] [RemoteService(false)]
public override Task DeleteAsync(Guid id) public override Task DeleteAsync(Guid id)
{ {
throw new NotImplementedException(); throw new NotSupportedException();
} }
} }
} }
\ No newline at end of file
...@@ -65,7 +65,7 @@ namespace EasyAbp.EShop.Products.ProductDetails ...@@ -65,7 +65,7 @@ namespace EasyAbp.EShop.Products.ProductDetails
[RemoteService(false)] [RemoteService(false)]
public override Task DeleteAsync(Guid id) public override Task DeleteAsync(Guid id)
{ {
throw new NotImplementedException(); throw new NotSupportedException();
} }
protected virtual async Task CheckStoreIsProductOwnerAsync(Guid productId, Guid storeId) protected virtual async Task CheckStoreIsProductOwnerAsync(Guid productId, Guid storeId)
......
...@@ -35,19 +35,19 @@ namespace EasyAbp.EShop.Products.ProductHistories ...@@ -35,19 +35,19 @@ namespace EasyAbp.EShop.Products.ProductHistories
[RemoteService(false)] [RemoteService(false)]
public override Task<ProductHistoryDto> CreateAsync(object input) public override Task<ProductHistoryDto> CreateAsync(object input)
{ {
throw new NotImplementedException(); throw new NotSupportedException();
} }
[RemoteService(false)] [RemoteService(false)]
public override Task<ProductHistoryDto> UpdateAsync(Guid id, object input) public override Task<ProductHistoryDto> UpdateAsync(Guid id, object input)
{ {
throw new NotImplementedException(); throw new NotSupportedException();
} }
[RemoteService(false)] [RemoteService(false)]
public override Task DeleteAsync(Guid id) public override Task DeleteAsync(Guid id)
{ {
throw new NotImplementedException(); throw new NotSupportedException();
} }
} }
} }
\ No newline at end of file
...@@ -199,14 +199,14 @@ namespace EasyAbp.EShop.Products.Products ...@@ -199,14 +199,14 @@ namespace EasyAbp.EShop.Products.Products
[RemoteService(false)] [RemoteService(false)]
public override Task DeleteAsync(Guid id) public override Task DeleteAsync(Guid id)
{ {
throw new NotImplementedException(); throw new NotSupportedException();
} }
[Obsolete("Should use GetAsync(Guid id, Guid storeId)")] [Obsolete("Should use GetAsync(Guid id, Guid storeId)")]
[RemoteService(false)] [RemoteService(false)]
public override Task<ProductDto> GetAsync(Guid id) public override Task<ProductDto> GetAsync(Guid id)
{ {
throw new NotImplementedException(); throw new NotSupportedException();
} }
public virtual async Task<ProductDto> GetAsync(Guid id, Guid storeId) public virtual async Task<ProductDto> GetAsync(Guid id, Guid storeId)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment