Skip to content

Commit

Permalink
Minor corrects
Browse files Browse the repository at this point in the history
  • Loading branch information
anshulv1401 committed Jan 8, 2022
1 parent aef3f0d commit 7d2460f
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 10 deletions.
1 change: 0 additions & 1 deletion TheBankMVC/Controllers/BanksController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using TheBankMVC.Data;
using TheBankMVC.Models;
using TheBankMVC.ViewModels;
//using System.Security.Claims;

namespace TheBankMVC.Controllers
{
Expand Down
1 change: 1 addition & 0 deletions TheBankMVC/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public static IHostBuilder CreateHostBuilder(string[] args) =>
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
webBuilder.UseUrls("http://localhost:5000", "https://localhost:5001");
});
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ by editing this MSBuild file. In order to learn more about this please visit htt
<PropertyGroup>
<TimeStampOfAssociatedLegacyPublishXmlFile />
<_PublishTargetUrl>C:\inetpub\wwwroot\TheBank</_PublishTargetUrl>
<History>False|2022-01-08T18:00:01.6100012Z;</History>
</PropertyGroup>
</Project>
21 changes: 21 additions & 0 deletions TheBankMVC/Scripts/Clear TransactionScript.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
SELECT * FROM Bank
SELECT * FROM UserAccount
SELECT * FROM BankUserMappings
SELECT * FROM EMIHeaders
SELECT * FROM Installments
SELECT * FROM Transactions

UPDATE UserAccount SET ShareSubmitted = 0, FineSubmitted = 0, InterestSubmitted = 0, AmountOnLoan = 0
DELETE FROM EMIHeaders
DELETE FROM Installments
DELETE FROM Transactions

UPDATE Installments SET DueDate = DATEADD(MONTH, -1, DueDate) WHERE InstallmentStatus <> 2
UPDATE Installments SET Fine = 0 WHERE InstallmentStatus <> 2

--UPDATE Installments SET DueDate = CAST(DueDate AS DATE)

SELECT * FROM Installments WHERE InstallmentStatus <> 2 ORDER BY DueDate

select * from EMIHeaders

2 changes: 1 addition & 1 deletion TheBankMVC/TheBankMVC.csproj.user
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ShowAllFiles>false</ShowAllFiles>
<NameOfLastUsedPublishProfile>CustomProfile</NameOfLastUsedPublishProfile>
<NameOfLastUsedPublishProfile>D:\Github\AnshulV1401\BankMVC\TheBankMVC\Properties\PublishProfiles\FolderProfile.pubxml</NameOfLastUsedPublishProfile>
<Controller_SelectedScaffolderID>ApiControllerEmptyScaffolder</Controller_SelectedScaffolderID>
<Controller_SelectedScaffolderCategoryPath>root/Controller</Controller_SelectedScaffolderCategoryPath>
<WebStackScaffolding_ControllerDialogWidth>600</WebStackScaffolding_ControllerDialogWidth>
Expand Down
10 changes: 2 additions & 8 deletions TheBankMVC/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,17 @@
<div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse">
<partial name="_LoginPartial" />
<ul class="navbar-nav flex-grow-1">
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Installments" asp-action="Index">Home</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="EMI" asp-action="Index">EMIs</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Banks" asp-action="Index">Bank</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="UserAccounts" asp-action="Index">UserAccounts</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Transactions" asp-action="Index">Transactions</a>
<a class="nav-link text-dark" asp-area="" asp-controller="EMI" asp-action="Index">EMIs</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
<a class="nav-link text-dark" asp-area="" asp-controller="Transactions" asp-action="Index">Transactions</a>
</li>
</ul>
</div>
Expand Down

0 comments on commit 7d2460f

Please sign in to comment.