@using AspNetFrameworkMVC.Models

@{
	ViewBag.Title = "ShowGuests";
	List<Guest> guests = (List<Guest>)Model;
}

<h2>ShowGuests</h2>
<p>
	@for (int i = 0; i < guests.Count; i++)
	{
		Guest guest = guests[i];
		string text = $"Id: {guest.Id}, Name: {guest.Name}, CreatedDate: {guest.CreatedDate}, Message: {guest.Message}";
		<div>@text</div>
	}
</p>

