Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Transportation.ViewModels.TransportationViewModel>" %>
- <%@ Import Namespace="Transportation.Models" %>
- <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
- ListVehicles
- </asp:Content>
- <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
- <h2>List Vehicles</h2>
- <h4>Cars:</h4>
- <% foreach(Car c in Model.Cars)
- {%>
- Make: <b><%=c.Make %></b>
- Model: <b><%=c.Model %></b>
- <% } %>
- <h4>Train:</h4>
- <b><%=Model.Train.Line %></b>
- <b><%=Model.Train.Schedule %></b>
- </asp:Content>
Add Comment
Please, Sign In to add comment