Skip to content

Commit

Permalink
Add Home Razor
Browse files Browse the repository at this point in the history
  • Loading branch information
MSChobanov21 committed Jan 27, 2025
1 parent d0f0cb8 commit 48639a5
Show file tree
Hide file tree
Showing 38 changed files with 55 additions and 23 deletions.
4 changes: 2 additions & 2 deletions Festival/Festival.DAL/Models/Event.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
public class Event
{
public int Id { get; set; }
public string Name { get; set; }
public DateTime Date { get; set; }
public string EventName { get; set; }
public DateTime EventDate { get; set; }
public string Location { get; set; }
}
}
10 changes: 2 additions & 8 deletions Festival/Festival.DAL/Models/Ticket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,16 @@ namespace Festival.DAL.Models
{
public class Ticket
{
// Unique identifier for the ticket
public int Id { get; set; }

// Foreign key to associate the ticket with an event

public int EventId { get; set; }

// Price of the ticket

public decimal Price { get; set; }

// Date and time when the ticket was purchased
public DateTime PurchaseDate { get; set; }

// Name of the customer who purchased the ticket
public string CustomerName { get; set; }

// Navigation property to the associated event
public Event Event { get; set; }
}
}
Binary file modified Festival/Festival.DAL/bin/Debug/net8.0/Festival.DAL.dll
Binary file not shown.
Binary file modified Festival/Festival.DAL/bin/Debug/net8.0/Festival.DAL.pdb
Binary file not shown.
Binary file modified Festival/Festival.DAL/obj/Debug/net8.0/Festival.DAL.dll
Binary file not shown.
Binary file modified Festival/Festival.DAL/obj/Debug/net8.0/Festival.DAL.pdb
Binary file not shown.
Binary file modified Festival/Festival.DAL/obj/Debug/net8.0/ref/Festival.DAL.dll
Binary file not shown.
Binary file modified Festival/Festival.DAL/obj/Debug/net8.0/refint/Festival.DAL.dll
Binary file not shown.
44 changes: 41 additions & 3 deletions Festival/Festival.PL/Pages/Home.razor
Original file line number Diff line number Diff line change
@@ -1,7 +1,45 @@
@page "/"
@using Festival.DAL.Models;
@using System.ComponentModel.DataAnnotations;

<PageTitle>Home</PageTitle>
<h1>Home</h1>

<h1>Hello, world!</h1>
<p>Welcome to the Festival App!</p>

Welcome to your new app.
<h2>Artists</h2>

<ul>
@foreach (var artist in Artists)
{
<li>@artist.Name</li>
}
</ul>

<h2>Events</h2>

<ul>
@foreach (var even in Events)
{
<li>@even.EventName - @even.EventDate</li>
}
</ul>

<h2>Tickets</h2>

<ul>
@foreach (var ticket in Tickets)
{
<li>@ticket.EventId - Price: $@ticket.Price</li>
}
</ul>

@code {
private List<Artist> Artists { get; set; } = new List<Artist>();
private List<Event> Events { get; set; } = new List<Event>();
private List<Ticket> Tickets { get; set; } = new List<Ticket>();

protected override async Task OnInitializedAsync()
{

}
}
Binary file modified Festival/Festival.PL/bin/Debug/net8.0/Festival.DAL.dll
Binary file not shown.
Binary file modified Festival/Festival.PL/bin/Debug/net8.0/Festival.DAL.pdb
Binary file not shown.
Binary file modified Festival/Festival.PL/bin/Debug/net8.0/Festival.PL.dll
Binary file not shown.
Binary file modified Festival/Festival.PL/bin/Debug/net8.0/Festival.PL.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"mainAssemblyName": "Festival.PL",
"resources": {
"hash": "sha256-dZ7vsjsHXxSci/mwNiKfMhrrDx0eF+YTnmhPZACgNmQ=",
"hash": "sha256-c1KKl6bNXsFCLu9zghRpGfX5OtRs8duO7+XBttU9jNc=",
"jsModuleNative": {
"dotnet.native.8.0.8.qyo02f0lmf.js": "sha256-juC5sA7gHTLXFEhAKgdM2/RavswpwCtDfjYGsAz2FXg="
},
Expand Down Expand Up @@ -237,12 +237,12 @@
"mscorlib.wasm": "sha256-Gz8PyW2/fwihe5ul81OwmRUrU71r+KtbyRw6xlOGD+Q=",
"netstandard.wasm": "sha256-jMTqIQzoDS810lyhZpMO5eEC36EzntXqSVn+2qwkOMQ=",
"System.Private.CoreLib.wasm": "sha256-NFj5WE5VLP2LptZIRJCUIc1AMk06FmxpsSILfPISwAw=",
"Festival.DAL.wasm": "sha256-69uPAws3VR2gbhsBwOPQIHwBTytp3ueDaKmuVJFc8jY=",
"Festival.PL.wasm": "sha256-o8Fg+cKJXCdOP+EVDn0nSpz9Uhe/6mtNdetiR4QfJ8E="
"Festival.DAL.wasm": "sha256-pIpYz/EPWX3H0TiWhLLLAI7vNKNOYG/eNw4xIhzrb0Y=",
"Festival.PL.wasm": "sha256-6PDG2fW67+O27K/veoAptfYgxsjhdAq9smcGDE88qzE="
},
"pdb": {
"Festival.DAL.pdb": "sha256-dtbV0oey90NCyTvy0DAdoDL1RAXP4dl4m1+Bhsvolpg=",
"Festival.PL.pdb": "sha256-ZtMtW5wR6sYcxyCyyLz6GsH71T2UN/8es+I02Xy0Yrk="
"Festival.DAL.pdb": "sha256-rhJ7TOZYd2PrLR1LLDpSDOr+A/CQ3clgoX/paFVDt28=",
"Festival.PL.pdb": "sha256-Iizve3D0Yo05CgOPx2ZMC/PKwxFeJpMjiohOheAZfks="
}
},
"cacheBootResources": true,
Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/Festival.PL.dll
Binary file not shown.
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/Festival.PL.pdb
Binary file not shown.
10 changes: 5 additions & 5 deletions Festival/Festival.PL/obj/Debug/net8.0/blazor.boot.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"mainAssemblyName": "Festival.PL",
"resources": {
"hash": "sha256-dZ7vsjsHXxSci/mwNiKfMhrrDx0eF+YTnmhPZACgNmQ=",
"hash": "sha256-c1KKl6bNXsFCLu9zghRpGfX5OtRs8duO7+XBttU9jNc=",
"jsModuleNative": {
"dotnet.native.8.0.8.qyo02f0lmf.js": "sha256-juC5sA7gHTLXFEhAKgdM2/RavswpwCtDfjYGsAz2FXg="
},
Expand Down Expand Up @@ -237,12 +237,12 @@
"mscorlib.wasm": "sha256-Gz8PyW2/fwihe5ul81OwmRUrU71r+KtbyRw6xlOGD+Q=",
"netstandard.wasm": "sha256-jMTqIQzoDS810lyhZpMO5eEC36EzntXqSVn+2qwkOMQ=",
"System.Private.CoreLib.wasm": "sha256-NFj5WE5VLP2LptZIRJCUIc1AMk06FmxpsSILfPISwAw=",
"Festival.DAL.wasm": "sha256-69uPAws3VR2gbhsBwOPQIHwBTytp3ueDaKmuVJFc8jY=",
"Festival.PL.wasm": "sha256-o8Fg+cKJXCdOP+EVDn0nSpz9Uhe/6mtNdetiR4QfJ8E="
"Festival.DAL.wasm": "sha256-pIpYz/EPWX3H0TiWhLLLAI7vNKNOYG/eNw4xIhzrb0Y=",
"Festival.PL.wasm": "sha256-6PDG2fW67+O27K/veoAptfYgxsjhdAq9smcGDE88qzE="
},
"pdb": {
"Festival.DAL.pdb": "sha256-dtbV0oey90NCyTvy0DAdoDL1RAXP4dl4m1+Bhsvolpg=",
"Festival.PL.pdb": "sha256-ZtMtW5wR6sYcxyCyyLz6GsH71T2UN/8es+I02Xy0Yrk="
"Festival.DAL.pdb": "sha256-rhJ7TOZYd2PrLR1LLDpSDOr+A/CQ3clgoX/paFVDt28=",
"Festival.PL.pdb": "sha256-Iizve3D0Yo05CgOPx2ZMC/PKwxFeJpMjiohOheAZfks="
}
},
"cacheBootResources": true,
Expand Down
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/compressed/a9jd1qftwr.gz
Binary file not shown.
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/compressed/fveyapdap7.gz
Binary file not shown.
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/compressed/g5kifqoip1.gz
Binary file not shown.
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/compressed/mkhyi5sui5.gz
Binary file not shown.
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/compressed/z55ykdkz41.gz
Binary file not shown.
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/ref/Festival.PL.dll
Binary file not shown.
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/refint/Festival.PL.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/webcil/Festival.DAL.wasm
Binary file not shown.
Binary file modified Festival/Festival.PL/obj/Debug/net8.0/webcil/Festival.PL.wasm
Binary file not shown.

0 comments on commit 48639a5

Please sign in to comment.