Commit 41d11105 authored by gdlcf88's avatar gdlcf88

Added ObsoleteAttribute

parent f08cc005
...@@ -61,18 +61,13 @@ namespace EasyAbp.EShop.Products.ProductDetails ...@@ -61,18 +61,13 @@ namespace EasyAbp.EShop.Products.ProductDetails
await Repository.DeleteAsync(id); await Repository.DeleteAsync(id);
} }
[Obsolete("Should use DeleteAsync(Guid id, Guid storeId)")]
[RemoteService(false)] [RemoteService(false)]
public override Task DeleteAsync(Guid id) public override Task DeleteAsync(Guid id)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
[RemoteService(false)]
public override Task<PagedResultDto<ProductDetailDto>> GetListAsync(PagedAndSortedResultRequestDto input)
{
throw new NotImplementedException();
}
protected virtual async Task CheckStoreIsProductOwnerAsync(Guid productId, Guid storeId) protected virtual async Task CheckStoreIsProductOwnerAsync(Guid productId, Guid storeId)
{ {
var productStore = await _productStoreRepository.GetAsync(productId, storeId); var productStore = await _productStoreRepository.GetAsync(productId, storeId);
......
...@@ -162,12 +162,14 @@ namespace EasyAbp.EShop.Products.Products ...@@ -162,12 +162,14 @@ namespace EasyAbp.EShop.Products.Products
product.ProductAttributes.RemoveAll(a => exceptAttributeNames.Contains(a.DisplayName)); product.ProductAttributes.RemoveAll(a => exceptAttributeNames.Contains(a.DisplayName));
} }
[Obsolete("Should use DeleteAsync(Guid id, Guid storeId)")]
[RemoteService(false)] [RemoteService(false)]
public override Task DeleteAsync(Guid id) public override Task DeleteAsync(Guid id)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
[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)
{ {
......
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