This commit is contained in:
mmrbnjd
2024-06-25 20:54:16 +03:30
parent ce81911242
commit 75b9644151
3 changed files with 21 additions and 9 deletions

View File

@@ -14,7 +14,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 DashBoardDTO? dashBoard { get; set; } = null;
public Fixedvalues(HttpClientController hc)
{
_hc = hc;
@@ -76,10 +76,10 @@ namespace Front
return InfoCompany;
}
public async Task<DashBoardDTO?> GetDashBoard()
public async Task<DashBoardDTO?> GetDashBoard(bool run=false)
{
if (dashBoard == null)
if (dashBoard == null || run)
{
var rsp = await _hc.Get("User/GetDashBoard");
if (rsp.IsSuccessStatusCode)