From a0369615d20d8c28bf84bd08838c8df47c42fafd Mon Sep 17 00:00:00 2001 From: Vazhin Tayeb Date: Mon, 18 Jan 2021 19:55:59 +0300 Subject: [PATCH] Customizes Tax App --- .../OidcSamples.TaxApp/Pages/Index.cshtml | 99 +++++++++++------- .../OidcSamples.TaxApp/Pages/Index.cshtml.cs | 2 +- .../Pages/Shared/_Layout.cshtml | 12 +-- .../OidcSamples.TaxApp/wwwroot/css/site.css | 13 ++- .../wwwroot/images/charter.zip | Bin 0 -> 881619 bytes .../wwwroot/images/logo.svg | 16 +-- 6 files changed, 85 insertions(+), 57 deletions(-) create mode 100644 CSharp/OidcSamples/OidcSamples.TaxApp/wwwroot/images/charter.zip diff --git a/CSharp/OidcSamples/OidcSamples.TaxApp/Pages/Index.cshtml b/CSharp/OidcSamples/OidcSamples.TaxApp/Pages/Index.cshtml index c14364c..bafdc91 100644 --- a/CSharp/OidcSamples/OidcSamples.TaxApp/Pages/Index.cshtml +++ b/CSharp/OidcSamples/OidcSamples.TaxApp/Pages/Index.cshtml @@ -4,45 +4,64 @@ ViewData["Title"] = "Home page"; } -

General Directorate of Region Taxes and Real Estate

-
-

Welcome @Model.FirstName @Model.LastName!

-
-

Your total tax is:

-

@Model.TotalTax.ToString("N0") IQD

+
+ +
+

Welcome @Model.FirstName @Model.LastName!

+

General Directorate of Region Taxes and Real Estate

+
+ +
+

Your total tax is:

+

@Model.TotalTax.ToString("N0") IQD

+
+ +
+

Taxable Properties

+ + + + + + + + + + @foreach (var realEstate in Model.RealEstate) + { + + + + + } + +
AreaAdress
@realEstate.Area@realEstate.Address
+
+ +
+

Vehicles

+ + + + + + + + + + + + @foreach (var vehicle in Model.Vehicles) + { + + + + + + + } + +
ModelLicense PlateColorType
@vehicle.Model@vehicle.LicensePlate@vehicle.Color@vehicle.Type
- -

Taxable Properties

- -

Vehicles

- - - - - - - - - - - - - -@foreach (var vehicle in Model.Vehicles) - { - - - - - - - - - } - - - - -
ModelLicense PlateColorType
@vehicle.Model@vehicle.LicensePlate@vehicle.Color@vehicle.Type
- diff --git a/CSharp/OidcSamples/OidcSamples.TaxApp/Pages/Index.cshtml.cs b/CSharp/OidcSamples/OidcSamples.TaxApp/Pages/Index.cshtml.cs index c218b2d..ab9560a 100644 --- a/CSharp/OidcSamples/OidcSamples.TaxApp/Pages/Index.cshtml.cs +++ b/CSharp/OidcSamples/OidcSamples.TaxApp/Pages/Index.cshtml.cs @@ -29,7 +29,7 @@ namespace OidcSamples.TaxApp.Pages public class RealEstate { public int Id { get; set; } - public int Area { get; set; } + public double Area { get; set; } public string Address { get; set; } public string Citizen_upn { get; set; } } diff --git a/CSharp/OidcSamples/OidcSamples.TaxApp/Pages/Shared/_Layout.cshtml b/CSharp/OidcSamples/OidcSamples.TaxApp/Pages/Shared/_Layout.cshtml index 6ad7017..6d451bd 100644 --- a/CSharp/OidcSamples/OidcSamples.TaxApp/Pages/Shared/_Layout.cshtml +++ b/CSharp/OidcSamples/OidcSamples.TaxApp/Pages/Shared/_Layout.cshtml @@ -11,10 +11,10 @@ integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous"> - +