...
This commit is contained in:
@@ -12,6 +12,7 @@ namespace Front
|
||||
private List<CODIdName<int>>? Cods = null;
|
||||
private CompanyDTO? InfoCompany = null;
|
||||
public InvoiceDTO? invoice { get; set; }=null;
|
||||
private DashBoardDTO? dashBoard { get; set; } = null;
|
||||
public Fixedvalues(HttpClientController hc)
|
||||
{
|
||||
_hc = hc;
|
||||
@@ -73,5 +74,20 @@ namespace Front
|
||||
|
||||
return InfoCompany;
|
||||
}
|
||||
public async Task<DashBoardDTO?> GetDashBoard()
|
||||
{
|
||||
|
||||
if (dashBoard == null)
|
||||
{
|
||||
var rsp = await _hc.Get("User/GetDashBoard");
|
||||
if (rsp.IsSuccessStatusCode)
|
||||
{
|
||||
dashBoard = await rsp.Content.ReadFromJsonAsync<DashBoardDTO>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return dashBoard;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user