Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
EShop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
EShop
Commits
41d11105
Commit
41d11105
authored
Apr 29, 2020
by
gdlcf88
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added ObsoleteAttribute
parent
f08cc005
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
ProductDetailAppService.cs
.../EShop/Products/ProductDetails/ProductDetailAppService.cs
+1
-6
ProductAppService.cs
...tion/EasyAbp/EShop/Products/Products/ProductAppService.cs
+2
-0
No files found.
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/ProductDetails/ProductDetailAppService.cs
View file @
41d11105
...
@@ -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
);
...
...
modules/EasyAbp.EShop.Products/src/EasyAbp.EShop.Products.Application/EasyAbp/EShop/Products/Products/ProductAppService.cs
View file @
41d11105
...
@@ -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
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment