ApiController - remove method: GetApiPathFromServer

This commit is contained in:
DucDangAnh 2020-06-29 09:56:12 +07:00
parent f4527e3eac
commit 7b05cbafa2

View File

@ -28,7 +28,6 @@ namespace AIParkingApplication
Dispose(); Dispose();
} }
//TODO Old API
public async Task<LoginDataModel> Login(LoginModel loginData) public async Task<LoginDataModel> Login(LoginModel loginData)
{ {
try try
@ -73,23 +72,6 @@ namespace AIParkingApplication
} }
} }
public async void GetApiPathFromServer()
{
try
{
var request = new PlateRequestEngineModel
{
};
HttpResponseMessage response = await httpClient.PostAsJsonAsync("/get-from-frame", request);
response.EnsureSuccessStatusCode();
var ocrResult = await response.Content.ReadAsAsync<OcrResult>();
}
catch (Exception ex)
{
Console.WriteLine($"SendEngineRequest : {ex.Message}");
}
}
public async Task<CardValidation> CheckCard(string cardNumber) public async Task<CardValidation> CheckCard(string cardNumber)
{ {
try try