Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
Bailun.PmsAPI
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
pds
Bailun.PmsAPI
Commits
c429864f
Commit
c429864f
authored
Jan 13, 2021
by
weitianhua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
47b3a6e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
HelpPageSampleGenerator.cs
...reas/HelpPage/SampleGeneration/HelpPageSampleGenerator.cs
+2
-2
WebApi.csproj
WebApi/WebApi.csproj
+3
-0
packages.config
WebApi/packages.config
+1
-0
No files found.
WebApi/Areas/HelpPage/SampleGeneration/HelpPageSampleGenerator.cs
View file @
c429864f
using
Newtonsoft.Json
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.ObjectModel
;
...
...
@@ -11,7 +12,6 @@ using System.Net.Http.Formatting;
using
System.Net.Http.Headers
;
using
System.Web.Http.Description
;
using
System.Xml.Linq
;
using
Newtonsoft.Json
;
namespace
WebApi.Areas.HelpPage
{
...
...
@@ -378,7 +378,7 @@ namespace WebApi.Areas.HelpPage
try
{
object
parsedJson
=
JsonConvert
.
DeserializeObject
(
str
);
return
JsonConvert
.
SerializeObject
(
parsedJson
,
Formatting
.
Indented
);
return
JsonConvert
.
SerializeObject
(
parsedJson
,
Newtonsoft
.
Json
.
Formatting
.
Indented
);
}
catch
{
...
...
WebApi/WebApi.csproj
View file @
c429864f
...
...
@@ -88,6 +88,9 @@
<Reference Include="MySql.Data, Version=6.9.12.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
<HintPath>..\packages\MySql.Data.6.9.12\lib\net45\MySql.Data.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Data.DataSetExtensions" />
...
...
WebApi/packages.config
View file @
c429864f
...
...
@@ -61,6 +61,7 @@
<
package
id
=
"Microsoft.Web.Infrastructure"
version
=
"1.0.0.0"
targetFramework
=
"net452"
/>
<
package
id
=
"Modernizr"
version
=
"2.6.2"
targetFramework
=
"net452"
/>
<
package
id
=
"MySql.Data"
version
=
"6.9.12"
targetFramework
=
"net45"
/>
<
package
id
=
"Newtonsoft.Json"
version
=
"10.0.3"
targetFramework
=
"net45"
/>
<
package
id
=
"Owin"
version
=
"1.0"
targetFramework
=
"net452"
/>
<
package
id
=
"Respond"
version
=
"1.2.0"
targetFramework
=
"net452"
/>
<
package
id
=
"WebGrease"
version
=
"1.5.2"
targetFramework
=
"net452"
/>
...
...
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