ReportSuccess
This commit is contained in:
parent
a6fe4c431a
commit
277bc87ff7
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user