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
d90c719e
authored
Mar 25, 2022
by
Alex Nasyr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
json updated
parent
94a7fc86
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
SocialMinistryDataExchange/Controllers/apiController.cs
SocialMinistryDataExchange/Model/SMRequest.cs
SocialMinistryDataExchange/Controllers/apiController.cs
View file @
d90c719e
...
...
@@ -20,13 +20,16 @@ namespace SocialMinistryDataExchange.Controllers {
var
msg
=
new
SMPersonDataRequest
()
{
MsgID
=
"123"
,
MsgDataTime
=
DateTime
.
Now
,
MsgData
=
new
SMPersonDataOccupationMessage
[]
{
new
SMPersonDataOccupationMessage
()
{
MsgData
=
new
SMPersonDataOccupationMessage
[]
{
new
SMPersonDataOccupationMessage
()
{
Person
=
new
Person
()
{
rowguid_eais
=
"223322"
,
PersonDocumentSeria
=
"V-II"
,
PersonDocumentNumber
=
"123456"
},
PersonOccupation
=
new
SMPersonOccupation
(),
Error
=
""
}
}
PersonOccupation
=
new
SMPersonOccupationStatus
()
}
}
};
var
result
=
await
_repository
.
GetPersonByDoc
(
JsonSerializer
.
Serialize
(
msg
));
//var result = await _repository.GetPersonByDoc(JsonSerializer.Serialize(new List<SMPersonRequest>() { new SMPersonRequest() { rowguid_eais = "223322", document_seria = "V-II", document_number = "123456" }, new SMPersonRequest() { rowguid_eais = "322223", document_seria = "1234", document_number = "123456" } }));
...
...
SocialMinistryDataExchange/Model/SMRequest.cs
View file @
d90c719e
...
...
@@ -15,10 +15,9 @@ namespace SocialMinistryDataExchange.Model {
}
public
class
SMPersonDataOccupationMessage
{
public
Person
Person
{
get
;
set
;
}
public
SMPersonOccupation
PersonOccupation
{
get
;
set
;
}
public
string
?
Error
{
get
;
set
;
}
public
SMPersonOccupationStatus
PersonOccupation
{
get
;
set
;
}
}
public
class
SMPersonOccupation
{
public
class
SMPersonOccupation
Status
{
public
string
Status
{
get
;
set
;
}
public
DateTime
?
StatusDate
{
get
;
set
;
}
public
string
FounderType
{
get
;
set
;
}
...
...
@@ -27,7 +26,6 @@ namespace SocialMinistryDataExchange.Model {
public
string
EducationForm
{
get
;
set
;
}
}
public
class
SMPersonSocialDefenceDataRequest
{
public
string
MsgID
{
get
;
set
;
}
public
DateTime
MsgDataTime
{
get
;
set
;
}
...
...
@@ -63,6 +61,6 @@ namespace SocialMinistryDataExchange.Model {
public
string
?
DependentPerson
{
get
;
set
;
}
public
string
?
DependenceType
{
get
;
set
;
}
public
string
?
Territory
{
get
;
set
;
}
public
string
?
Error
{
get
;
set
;
}
}
}
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