This commit is contained in:
mmrbnjd
2024-05-23 19:59:19 +03:30
parent 12b89ad630
commit 0fc2efd5ca
10 changed files with 413 additions and 64 deletions

View File

@@ -9,6 +9,7 @@ namespace Front
public readonly HttpClientController _hc;
private List<ForCustomerSearch>? Cus=null;
private List<IdName<int>>? Patterns = null;
private List<CODIdName<int>>? Cods = null;
public Fixedvalues(HttpClientController hc)
{
_hc = hc;
@@ -27,6 +28,21 @@ namespace Front
return Cus;
}
public async Task<List<CODIdName<int>>?> GetCODs()
{
if (Cods == null)
{
var request = await _hc.Get($"COD/GetAllForidName");
if (request.IsSuccessStatusCode)
{
Cods = await request.Content.ReadFromJsonAsync<List<CODIdName<int>>>();
}
}
return Cods;
}
public async Task<List<IdName<int>>?> GetPatterns()
{