ReportSuccess

This commit is contained in:
shadowik 2023-05-20 04:20:50 +04:00
parent a6fe4c431a
commit 277bc87ff7

View File

@ -509,7 +509,7 @@ namespace BankYouBankruptCashierApp.Controllers
AccountId = int.Parse(accountId)
});
return Redirect("~/Home/Enter");
return Redirect("ReportSuccess");
}
//создание excel отчёта у касира
@ -526,7 +526,7 @@ namespace BankYouBankruptCashierApp.Controllers
AccountId = int.Parse(accountId)
});
return Redirect("~/Home/Enter");
return Redirect("ReportSuccess");
}
[HttpPost]
@ -534,7 +534,7 @@ namespace BankYouBankruptCashierApp.Controllers
{
if (APICashier.Cashier == null)
{
return Redirect("~/Home/Enter");
return Redirect("ReportSuccess");
}
ViewBag.Accounts = APICashier.GetRequest<List<AccountViewModel>>("/api/Account/GetAllAccounts");
@ -644,6 +644,16 @@ namespace BankYouBankruptCashierApp.Controllers
});
}
#endregion
}
#endregion
[HttpGet]
public IActionResult ReportSuccess()
{
if (APICashier.Cashier == null)
{
throw new Exception("Не авторизованы");
}
return View();
}
}
}