Browse Source

Transaction Report

feature/19315_Customer-Registration-new
Dinesh 11 months ago
parent
commit
b025292a39
  1. 5
      CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionReportController.cs
  2. 8
      CustomerOnlineV2/CustomerOnlineV2/Views/TransactionReport/TranReport.cshtml

5
CustomerOnlineV2/CustomerOnlineV2/Controllers/TransactionReportController.cs

@ -20,13 +20,18 @@ namespace CustomerOnlineV2.Controllers
public IActionResult TranReport()
{
@ViewBag.ResponseCode = "0";
return View();
}
[HttpPost]
[ValidateAntiForgeryToken]
[Authorization("GetTransactionReportList")]
public async Task<CustomerTransactionList> GetTransactionReportList(CustomerTransaction model)
{
@ViewBag.ResponseCode = "1";
var loginDetails = HttpContext.GetLoginDetails();
return await _transactionBusiness.GetTransactionReportList(loginDetails, model);
}

8
CustomerOnlineV2/CustomerOnlineV2/Views/TransactionReport/TranReport.cshtml

@ -165,9 +165,13 @@
@section scripts{
<script>
$(document).ready(function () {
GetTransactionList();
debugger;
if ('@ViewBag.ResponseCode' == '0') {
GetTransactionList();
}
});
function GetTransactionList() {
debugger;

Loading…
Cancel
Save