diff --git a/TicketOffice/Models/Ticket.cs b/TicketOffice/Models/Ticket.cs index 6278828..ffece9f 100644 --- a/TicketOffice/Models/Ticket.cs +++ b/TicketOffice/Models/Ticket.cs @@ -26,7 +26,7 @@ public class Ticket [Required] - public ICollection Cities { get; set; } = null!; + public List Cities { get; set; } = null!; [ForeignKey("User")] public int UserId { get; set; } diff --git a/TicketOffice/Models/User.cs b/TicketOffice/Models/User.cs index 3c47989..2df4ac2 100644 --- a/TicketOffice/Models/User.cs +++ b/TicketOffice/Models/User.cs @@ -30,5 +30,5 @@ public class User public bool IsManager { get; set; } - public ICollection? Tickets { get; set; } + public List? Tickets { get; set; } } \ No newline at end of file diff --git a/TicketOffice/appsettings.json b/TicketOffice/appsettings.json index e03332d..5609c2f 100644 --- a/TicketOffice/appsettings.json +++ b/TicketOffice/appsettings.json @@ -7,6 +7,6 @@ }, "AllowedHosts": "*", "ConnectionStrings": { - "TicketOfficeContext": "Filename=wwwroot/db/TicketOffice-SQLite.db" + "TicketOfficeContext": "Filename=./wwwroot/db/TicketOffice-SQLite.db" } -} \ No newline at end of file +}