Commit d90c719e by Alex Nasyr

json updated

parent 94a7fc86
......@@ -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" } }));
......
......@@ -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 SMPersonOccupationStatus {
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; }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment