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
5fe0353f
authored
Mar 25, 2022
by
AlexNasyr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repository cleaning
parent
ce501e84
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
18 deletions
SocialMinistryDataExchange/Controllers/apiController.cs
SocialMinistryDataExchange/Model/ISMRepository.cs
SocialMinistryDataExchange/Model/SMRepository.cs
SocialMinistryDataExchange/Controllers/apiController.cs
View file @
5fe0353f
...
@@ -13,24 +13,10 @@ namespace SocialMinistryDataExchange.Controllers {
...
@@ -13,24 +13,10 @@ namespace SocialMinistryDataExchange.Controllers {
}
}
[
HttpGet
]
[
Route
(
"[controller]/getpersonFixID"
)]
public
async
Task
<
List
<
SMResponce
>>
GetPersonFixID
()
{
var
result
=
await
_repository
.
GetPersonByID
(
"27373577-4234-43B2-A969-8D95B9384171"
);
return
result
;
}
//[HttpPost]
[
HttpGet
]
[
Route
(
"[controller]/getpersonByID/{PersonID}"
)]
public
async
Task
<
List
<
SMResponce
>>
GetPersonByID
(
string
PersonID
)
{
var
result
=
await
_repository
.
GetPersonByID
(
PersonID
);
return
result
;
}
// тестовый запрос с фиксированным документом личности
// тестовый запрос с фиксированным документом личности
[
HttpGet
]
[
HttpGet
]
[
Route
(
"[controller]/getpersonFixDoc"
)]
[
Route
(
"[controller]/getpersonFixDoc"
)]
public
async
Task
<
List
<
SMResponce
>
>
GetPersonFixDoc
()
{
public
async
Task
<
SMResponce
>
GetPersonFixDoc
()
{
var
result
=
await
_repository
.
GetPersonByDoc
(
JsonSerializer
.
Serialize
(
new
SMPersonRequest
()
{
rowguid_eais
=
"223322"
,
document_seria
=
"V-II"
,
document_number
=
"123456"
}));
var
result
=
await
_repository
.
GetPersonByDoc
(
JsonSerializer
.
Serialize
(
new
SMPersonRequest
()
{
rowguid_eais
=
"223322"
,
document_seria
=
"V-II"
,
document_number
=
"123456"
}));
return
result
;
return
result
;
}
}
...
@@ -38,7 +24,7 @@ namespace SocialMinistryDataExchange.Controllers {
...
@@ -38,7 +24,7 @@ namespace SocialMinistryDataExchange.Controllers {
//[HttpPost]
//[HttpPost]
[
HttpGet
]
[
HttpGet
]
[
Route
(
"[controller]/getpersonByDoc/{Rowguid}/{Seria}/{Number}"
)]
[
Route
(
"[controller]/getpersonByDoc/{Rowguid}/{Seria}/{Number}"
)]
public
async
Task
<
List
<
SMResponce
>>
GetPersonFix
Doc
(
string
Rowguid
,
string
Seria
,
string
Number
)
{
public
async
Task
<
SMResponce
>
GetPersonBy
Doc
(
string
Rowguid
,
string
Seria
,
string
Number
)
{
var
result
=
await
_repository
.
GetPersonByDoc
(
JsonSerializer
.
Serialize
(
new
SMPersonRequest
()
{
rowguid_eais
=
Rowguid
,
document_seria
=
Seria
,
document_number
=
Number
}));
var
result
=
await
_repository
.
GetPersonByDoc
(
JsonSerializer
.
Serialize
(
new
SMPersonRequest
()
{
rowguid_eais
=
Rowguid
,
document_seria
=
Seria
,
document_number
=
Number
}));
return
result
;
return
result
;
}
}
...
...
SocialMinistryDataExchange/Model/ISMRepository.cs
View file @
5fe0353f
...
@@ -3,8 +3,7 @@ using System.Threading.Tasks;
...
@@ -3,8 +3,7 @@ using System.Threading.Tasks;
namespace
SocialMinistryDataExchange.Model
{
namespace
SocialMinistryDataExchange.Model
{
public
interface
ISMRepository
{
public
interface
ISMRepository
{
Task
<
List
<
SMResponce
>>
GetPersonByID
(
string
ID
);
Task
<
SMResponce
>
GetPersonByDoc
(
string
Document
);
Task
<
List
<
SMResponce
>>
GetPersonByDoc
(
string
Document
);
Task
<
SMDefenceDemandResponce
>
GetPersonDefenceDemandByID
(
string
PersonID
);
Task
<
SMDefenceDemandResponce
>
GetPersonDefenceDemandByID
(
string
PersonID
);
}
}
}
}
SocialMinistryDataExchange/Model/SMRepository.cs
View file @
5fe0353f
This diff is collapsed.
Click to expand it.
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