Browse Source

Close #21: Change NotImplementedException to NotSupportedException

pull/49/head
gdlcf88 6 years ago
parent
commit
b57722cfb6
  1. 6
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductDetailHistories/ProductDetailHistoryAppService.cs
  2. 2
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductDetails/ProductDetailAppService.cs
  3. 6
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductHistories/ProductHistoryAppService.cs
  4. 4
      modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Products/ProductAppService.cs

6
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<ProductDetailHistoryDto> CreateAsync(object input)
{
throw new NotImplementedException();
throw new NotSupportedException();
}
[RemoteService(false)]
public override Task<ProductDetailHistoryDto> 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();
}
}
}

2
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)

6
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<ProductHistoryDto> CreateAsync(object input)
{
throw new NotImplementedException();
throw new NotSupportedException();
}
[RemoteService(false)]
public override Task<ProductHistoryDto> 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();
}
}
}

4
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<ProductDto> GetAsync(Guid id)
{
throw new NotImplementedException();
throw new NotSupportedException();
}
public virtual async Task<ProductDto> GetAsync(Guid id, Guid storeId)

Loading…
Cancel
Save