Automated teller machine emulation.
@{
ViewBag.Title = "Home";
}
<div class="jumbotron">
<h1>ATM</h1>
@if (TempData.Count > 0)
{
if (TempData.ContainsKey("MessageType") && TempData["MessageType"].ToString() == "error")
{
<span class="label label-danger">@TempData["Message"]</span>
}
if (!TempData.ContainsKey("MessageType") || TempData["MessageType"].ToString() == "success")
{
<span class="label label-success">@TempData["Message"]</span>
}
}
<p>
@Html.ActionLink("Balance", "Balance", "ATM", null, new { @class = "btn btn-primary btn-lg" })
@Html.ActionLink("Deposit", "Deposit", "ATM", null, new { @class = "btn btn-primary btn-lg" })
@Html.ActionLink("Withdraw", "Withdraw", "ATM", null, new { @class = "btn btn-primary btn-lg" })
@Html.ActionLink("Create Account", "CreateAccount", "ATM", null, new { @class = "btn btn-primary btn-lg" })
@Html.ActionLink("Convert", "ConvertCurrency", "ATM", null, new { @class = "btn btn-primary btn-lg" })
@Html.ActionLink("Finish", "LogOff", "Account", null, new { @class = "btn btn-default btn-lg" })
</p>
</div>