...
This commit is contained in:
@@ -10,6 +10,8 @@ namespace Front
|
||||
private List<ForCustomerSearch>? Cus=null;
|
||||
private List<IdName<int>>? Patterns = null;
|
||||
private List<CODIdName<int>>? Cods = null;
|
||||
private CompanyDTO? InfoCompany = null;
|
||||
public InvoiceDTO? invoice { get; set; }=null;
|
||||
public Fixedvalues(HttpClientController hc)
|
||||
{
|
||||
_hc = hc;
|
||||
@@ -58,5 +60,18 @@ namespace Front
|
||||
|
||||
return Patterns;
|
||||
}
|
||||
public async Task<CompanyDTO?> GetInfoCompany()
|
||||
{
|
||||
|
||||
if (InfoCompany == null)
|
||||
{
|
||||
var rspCompany = await _hc.Get($"Company/GetCompany");
|
||||
if (rspCompany.IsSuccessStatusCode)
|
||||
InfoCompany = await rspCompany.Content.ReadFromJsonAsync<CompanyDTO>();
|
||||
}
|
||||
|
||||
|
||||
return InfoCompany;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user