Commit 18bef3c7 by Alex Nasyr

model updating

parent 8977ddff
...@@ -39,7 +39,7 @@ namespace SocialMinistryDataExchange.Controllers { ...@@ -39,7 +39,7 @@ namespace SocialMinistryDataExchange.Controllers {
Person = new Person() { Person = new Person() {
rowguid_eais = "223322", rowguid_eais = "223322",
PersonDocumentSeria = "V-II", PersonDocumentSeria = "V-II",
PersonDocumentNumber = "123456", //PersonDocumentNumber = "123456",
PersonDocumentDate = DateTime.Parse("2010-01-01"), PersonDocumentDate = DateTime.Parse("2010-01-01"),
PersonFamilyName = "Мкртчян", PersonFamilyName = "Мкртчян",
PersonName = "Василий", PersonName = "Василий",
......
...@@ -55,6 +55,12 @@ namespace SocialMinistryDataExchange.Model { ...@@ -55,6 +55,12 @@ namespace SocialMinistryDataExchange.Model {
public SMResponceTemp() { public SMResponceTemp() {
} }
} }
public class SMDefenceDemandResponce {
public Guid PersonID { get; set; }
public string? Status { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
}
//old //old
......
using System;
namespace SocialMinistryDataExchange.Model {
public class SMDefenceDemandResponce {
public SMDefenceDemandResponce() {
}
public Guid PersonID { get; set; }
public string? Status { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? EndDate { get; set; }
}
}
...@@ -17,6 +17,7 @@ namespace SocialMinistryDataExchange.Model { ...@@ -17,6 +17,7 @@ namespace SocialMinistryDataExchange.Model {
_logger = logger; _logger = logger;
} }
// возвращает статус нуждаемости личности (для фронта)
public Task<SMDefenceDemandResponce> GetPersonDefenceDemandByID(string PersonID) { public Task<SMDefenceDemandResponce> GetPersonDefenceDemandByID(string PersonID) {
var status = (from st in _contingentContext.СтатусыНуждаемостиs var status = (from st in _contingentContext.СтатусыНуждаемостиs
where st.Личность == new Guid(PersonID) where st.Личность == new Guid(PersonID)
......
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