Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
bltdc
data-center-auto
Commits
ba4a2532
Commit
ba4a2532
authored
May 15, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
60db49a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
ApiController.cs
AutoTurnOver/Controllers/ApiController.cs
+13
-2
No files found.
AutoTurnOver/Controllers/ApiController.cs
View file @
ba4a2532
using
System
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.IO
;
using
System.Linq
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
AutoTurnOver.Common
;
using
AutoTurnOver.Common
;
using
AutoTurnOver.Models
;
using
AutoTurnOver.Models
;
using
AutoTurnOver.Services
;
using
AutoTurnOver.Services
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Http
;
using
Microsoft.AspNetCore.Mvc
;
using
Microsoft.AspNetCore.Mvc
;
using
AutoTurnOver.Utility
;
namespace
AutoTurnOver.Controllers
namespace
AutoTurnOver.Controllers
{
{
...
@@ -83,11 +86,19 @@ namespace AutoTurnOver.Controllers
...
@@ -83,11 +86,19 @@ namespace AutoTurnOver.Controllers
}
}
[
HttpPost
(
"FirstOrderSkuAdd"
)]
[
HttpPost
(
"FirstOrderSkuAdd"
)]
public
JsonResult
FirstOrderSkuAdd
([
FromBody
]
dc_auto_first_order_sku_input_dto
inputData
)
public
async
Task
<
JsonResult
>
FirstOrderSkuAdd
(
)
{
{
try
try
{
{
new
FirstOrderService
().
Add
(
inputData
);
var
result
=
string
.
Empty
;
using
(
var
reader
=
new
StreamReader
(
Request
.
Body
,
Encoding
.
UTF8
))
{
result
=
await
reader
.
ReadToEndAsync
();
new
FirstOrderService
().
Add
(
result
.
ToObj
<
dc_auto_first_order_sku_input_dto
>());
}
return
new
JsonResult
(
new
return
new
JsonResult
(
new
{
{
success
=
true
,
success
=
true
,
...
...
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