﻿@using ParkingSpace.Models

@{
  ViewBag.Title = "Index";
  var ticket =
    (ParkingTicket)TempData["newTicket"];
}

<h2>Gate In [@ViewBag.GateId]</h2>

@using (Html.BeginForm("CreateTicket", "GateIn")) {
  <div>
    Plate No.:<br />
    @Html.TextBox("plateNo")<br />

    <br />
    <button type="submit" class="btn btn-success">
      Issue Parking Ticket
    </button>
  </div>
}

@if (ticket != null) {
  <br/>
  <div class="well">
    @ticket.Id <br />
    @ticket.PlateNumber<br/>
    @ticket.DateIn
  </div>
}
﻿@using ParkingSpace.Models

@{
  ViewBag.Title = "Index";
  var ticket =
    (ParkingTicket)TempData["newTicket"];
}

<h2>Gate In</h2>

<div class="well well-sm">
  <strong>Gate:</strong> @ViewBag.GateId
</div>

@using (Html.BeginForm("CreateTicket", "GateIn")) {
  <div>
    Plate No.:<br />
    @Html.TextBox("plateNo")<br />

    <br />
    <button type="submit" class="btn btn-success">
      Issue Parking Ticket
    </button>
  </div>
}

@if (ticket != null) {
  <br />
  <div class="well">
    @ticket.Id <br />
    @ticket.PlateNumber<br />
    @ticket.DateIn
  </div>
}
Update UI display gate number
Update UI display gate number
