Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CountryDetials countrydetials = new CountryDetials();
- var model = GetCurrency(countrydetials.Country);
- countrydetials.Currency = model.FirstOrDefault().Currency;
- @Html.DropDownListFor(m => m.Currency, new List<SelectListItem>
- {
- new SelectListItem {Value = "INR", Text="Indian Rupee" },
- new SelectListItem {Value = "NPR", Text = "Nepalese Rupee" },
- },
- new { @class = "form-control" })
- @Html.DropDownListFor(m => m.Country, new List<SelectListItem>
- {
- new SelectListItem {Value = "IND", Text = "India" },
- new SelectListItem {Value = "NEP", Text = "Nepal" },
- new SelectListItem {Value = "SIN", Text = "Singapore" },
- new SelectListItem {Value = "USA", Text = "USA" },
- },
- new { @class = "form-control"})
Add Comment
Please, Sign In to add comment