Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Marat Pavlov
/
AlexAdapter
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0ebf45b7
authored
Mar 23, 2022
by
AlexNasyr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transit
parent
1d9c1e93
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
SocialMinistryDataExchange/Controllers/apiController.cs
SocialMinistryDataExchange/Startup.cs
SocialMinistryDataExchange/Controllers/apiController.cs
View file @
0ebf45b7
...
@@ -19,7 +19,8 @@ namespace SocialMinistryDataExchange.Controllers {
...
@@ -19,7 +19,8 @@ namespace SocialMinistryDataExchange.Controllers {
var
result
=
await
_repository
.
GetPersonByID
(
"27373577-4234-43B2-A969-8D95B9384171"
);
var
result
=
await
_repository
.
GetPersonByID
(
"27373577-4234-43B2-A969-8D95B9384171"
);
return
result
;
return
result
;
}
}
[
HttpPost
]
//[HttpPost]
[
HttpGet
]
[
Route
(
"[controller]/getpersonByID/{PersonID}"
)]
[
Route
(
"[controller]/getpersonByID/{PersonID}"
)]
public
async
Task
<
List
<
SMResponce
>>
GetPersonByID
(
string
PersonID
)
{
public
async
Task
<
List
<
SMResponce
>>
GetPersonByID
(
string
PersonID
)
{
var
result
=
await
_repository
.
GetPersonByID
(
PersonID
);
var
result
=
await
_repository
.
GetPersonByID
(
PersonID
);
...
@@ -34,7 +35,8 @@ namespace SocialMinistryDataExchange.Controllers {
...
@@ -34,7 +35,8 @@ namespace SocialMinistryDataExchange.Controllers {
return
result
;
return
result
;
}
}
// запрос по серии/номеру документа личности
// запрос по серии/номеру документа личности
[
HttpPost
]
//[HttpPost]
[
HttpGet
]
[
Route
(
"[controller]/getpersonByDoc/{Rowguid}/{Seria}/{Number}"
)]
[
Route
(
"[controller]/getpersonByDoc/{Rowguid}/{Seria}/{Number}"
)]
public
async
Task
<
List
<
SMResponce
>>
GetPersonFixDoc
(
string
Rowguid
,
string
Seria
,
string
Number
)
{
public
async
Task
<
List
<
SMResponce
>>
GetPersonFixDoc
(
string
Rowguid
,
string
Seria
,
string
Number
)
{
var
result
=
await
_repository
.
GetPersonByDoc
(
JsonSerializer
.
Serialize
(
new
SMRequest
()
{
rowguid_eais
=
Rowguid
,
document_seria
=
Seria
,
document_number
=
Number
}));
var
result
=
await
_repository
.
GetPersonByDoc
(
JsonSerializer
.
Serialize
(
new
SMRequest
()
{
rowguid_eais
=
Rowguid
,
document_seria
=
Seria
,
document_number
=
Number
}));
...
@@ -42,7 +44,8 @@ namespace SocialMinistryDataExchange.Controllers {
...
@@ -42,7 +44,8 @@ namespace SocialMinistryDataExchange.Controllers {
}
}
// запрос статуса нуждаемости по guid личности
// запрос статуса нуждаемости по guid личности
[
HttpPost
]
//[HttpPost]
[
HttpGet
]
[
Route
(
"[controller]/getpersonDefenceDemandByID/{PersonID}"
)]
[
Route
(
"[controller]/getpersonDefenceDemandByID/{PersonID}"
)]
public
async
Task
<
SMDefenceDemandResponce
>
GetPersonDefenceDemandByID
(
string
PersonID
)
{
public
async
Task
<
SMDefenceDemandResponce
>
GetPersonDefenceDemandByID
(
string
PersonID
)
{
var
result
=
await
_repository
.
GetPersonDefenceDemandByID
(
PersonID
);
var
result
=
await
_repository
.
GetPersonDefenceDemandByID
(
PersonID
);
...
...
SocialMinistryDataExchange/Startup.cs
View file @
0ebf45b7
...
@@ -16,14 +16,11 @@ namespace SocialMinistryDataExchange {
...
@@ -16,14 +16,11 @@ namespace SocialMinistryDataExchange {
public
IConfiguration
Configuration
{
get
;
}
public
IConfiguration
Configuration
{
get
;
}
// This method gets called by the runtime. Use this method to add services to the container.
// This method gets called by the runtime. Use this method to add services to the container.
public
void
ConfigureServices
(
IServiceCollection
services
)
{
public
void
ConfigureServices
(
IServiceCollection
services
)
{
var
ConnectionString
=
Configuration
.
GetConnectionString
(
"Êîíòèíãåíò_center"
);
var
ConnectionString
=
Configuration
.
GetConnectionString
(
"Êîíòèíãåíò_center"
);
services
.
AddControllers
();
services
.
AddControllers
();
services
.
AddSwaggerGen
(
c
=>
{
services
.
AddSwaggerGen
(
c
=>
{
c
.
SwaggerDoc
(
"v1"
,
new
OpenApiInfo
{
Title
=
"SocialMinistryDataExchange"
,
Version
=
"v1"
});
c
.
SwaggerDoc
(
"v1"
,
new
OpenApiInfo
{
Title
=
"SocialMinistryDataExchange"
,
Version
=
"v1"
});
...
...
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