ReportSuccess
This commit is contained in:
parent
7cfaadd8d0
commit
e2d7a4ae14
@ -341,9 +341,19 @@ namespace BankYouBankruptClientApp.Controllers
|
||||
CardList = cards.Where(x => x.IsChecked).Select(x => x.Id).ToList()
|
||||
});
|
||||
|
||||
return Redirect("~/Home/Enter");
|
||||
return Redirect("ReportSuccess");
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public IActionResult ReportSuccess() {
|
||||
if (APIClient.Client == null)
|
||||
{
|
||||
throw new Exception("Не авторизованы");
|
||||
}
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
//отчёт клиента по пополнениям
|
||||
[HttpPost]
|
||||
public IActionResult CreateCreditingExcelReport(List<CheckboxViewModel> cards)
|
||||
@ -358,8 +368,8 @@ namespace BankYouBankruptClientApp.Controllers
|
||||
CardList = cards.Where(x => x.IsChecked).Select(x => x.Id).ToList()
|
||||
});
|
||||
|
||||
return Redirect("~/Home/Enter");
|
||||
}
|
||||
return Redirect("ReportSuccess");
|
||||
}
|
||||
|
||||
//отчёт клиента по снятиям
|
||||
[HttpPost]
|
||||
@ -375,8 +385,8 @@ namespace BankYouBankruptClientApp.Controllers
|
||||
CardList = cards.Where(x => x.IsChecked).Select(x => x.Id).ToList()
|
||||
});
|
||||
|
||||
return Redirect("~/Home/Enter");
|
||||
}
|
||||
return Redirect("ReportSuccess");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
@ -396,8 +406,8 @@ namespace BankYouBankruptClientApp.Controllers
|
||||
CardList = cards.Where(x => x.IsChecked).Select(x => x.Id).ToList()
|
||||
});
|
||||
|
||||
return Redirect("~/Home/Enter");
|
||||
}
|
||||
return Redirect("ReportSuccess");
|
||||
}
|
||||
|
||||
//отчёт клиента по пополнениям
|
||||
[HttpPost]
|
||||
@ -413,8 +423,8 @@ namespace BankYouBankruptClientApp.Controllers
|
||||
CardList = cards.Where(x => x.IsChecked).Select(x => x.Id).ToList()
|
||||
});
|
||||
|
||||
return Redirect("~/Home/Enter");
|
||||
}
|
||||
return Redirect("ReportSuccess");
|
||||
}
|
||||
|
||||
//отчёт клиента по снятиям
|
||||
[HttpPost]
|
||||
@ -430,8 +440,8 @@ namespace BankYouBankruptClientApp.Controllers
|
||||
CardList = cards.Where(x => x.IsChecked).Select(x => x.Id).ToList()
|
||||
});
|
||||
|
||||
return Redirect("~/Home/Enter");
|
||||
}
|
||||
return Redirect("ReportSuccess");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
@ -0,0 +1,16 @@
|
||||
@using BankYouBankruptСlientApp
|
||||
@{
|
||||
ViewData["Title"] = "Список карт";
|
||||
}
|
||||
|
||||
|
||||
<div class="text-center">
|
||||
@{
|
||||
if (APIClient.Client == null)
|
||||
{
|
||||
<h3 class="display-4">Сначала авторизируйтесь</h3>
|
||||
return;
|
||||
}
|
||||
}
|
||||
<h3 class="display-4">Отчeт был отправлен на почту @APIClient.Client.Email</h3>
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user