@model ParcelWeb.Core.Dto.CreateorEditCurrencyDto @using ParcelWeb.Core @{ ViewBag.Title = "Create"; }

Add Currency

@using (Html.BeginForm("Create", "Currency", FormMethod.Post, new { @class = "form form-horizontal" })) { @Html.AntiForgeryToken()

Currency Detail

@Html.ValidationSummary(true, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Code, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.DropDownListFor(mode => Model.Code, (SelectList)ViewBag.ISOCurrencyCode, "--SelectList Currency Code--", new { @class = "form-control select2" }) @* @Html.TextBoxFor(model => model.Code, null, htmlAttributes: new { @class = "form-control", placeholder = "Currency Code (ISO)" })*@ @Html.ValidationMessageFor(model => model.Code, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Name, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.TextBoxFor(model => model.Name, new { @class = "form-control", placeholder = "Currency Name" }) @Html.ValidationMessageFor(model => model.Name, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.DisplayLocal, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.DropDownListFor(mode => Model.DisplayLocal, (SelectList)ViewBag.Cultures,"--SelectList Culture--", new { @class = "form-control select2" } ) @Html.ValidationMessageFor(model => model.DisplayLocal, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.Rate, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.EditorFor(model => model.Rate, new { htmlAttributes = new { @class = "form-control",placeholder="0.00" } }) Exchange Rate for 1 unit of base currency @Html.ValidationMessageFor(model => model.Rate, "", new { @class = "text-danger" })
@Html.LabelFor(model => model.USDExchageRate, htmlAttributes: new { @class = "label-control col-md-2" })
@Html.EditorFor(model => model.USDExchageRate, new { htmlAttributes = new { @class = "form-control", placeholder = "0.00" } }) If online payment gateway will not support your primary currency then payment would be in US dollar and this exchange rate will apply to convert dollars into your primary currency @Html.ValidationMessageFor(model => model.USDExchageRate, "", new { @class = "text-danger" })
@**@ Cancel
}
@section Scripts { @Scripts.Render("~/bundles/jqueryval") }