Commit 5fe0353f by AlexNasyr

repository cleaning

parent ce501e84
......@@ -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]
[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" }));
return result;
}
......@@ -38,7 +24,7 @@ namespace SocialMinistryDataExchange.Controllers {
//[HttpPost]
[HttpGet]
[Route("[controller]/getpersonByDoc/{Rowguid}/{Seria}/{Number}")]
public async Task<List<SMResponce>> GetPersonFixDoc(string Rowguid, string Seria, string Number) {
public async Task<SMResponce> GetPersonByDoc(string Rowguid, string Seria, string Number) {
var result = await _repository.GetPersonByDoc(JsonSerializer.Serialize(new SMPersonRequest() { rowguid_eais = Rowguid, document_seria = Seria, document_number = Number }));
return result;
}
......
......@@ -3,8 +3,7 @@ using System.Threading.Tasks;
namespace SocialMinistryDataExchange.Model {
public interface ISMRepository {
Task<List<SMResponce>> GetPersonByID(string ID);
Task<List<SMResponce>> GetPersonByDoc(string Document);
Task<SMResponce> GetPersonByDoc(string Document);
Task<SMDefenceDemandResponce> GetPersonDefenceDemandByID(string 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