ReportSuccess

This commit is contained in:
shadowik 2023-05-20 04:14:32 +04:00
parent 7cfaadd8d0
commit e2d7a4ae14
2 changed files with 37 additions and 11 deletions

View File

@ -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

View File

@ -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>