Guest User

Untitled

a guest
Jul 16th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. CountryDetials countrydetials = new CountryDetials();
  2. var model = GetCurrency(countrydetials.Country);
  3. countrydetials.Currency = model.FirstOrDefault().Currency;
  4.  
  5. @Html.DropDownListFor(m => m.Currency, new List<SelectListItem>
  6. {
  7. new SelectListItem {Value = "INR", Text="Indian Rupee" },
  8. new SelectListItem {Value = "NPR", Text = "Nepalese Rupee" },
  9.  
  10. },
  11. new { @class = "form-control" })
  12.  
  13.  
  14.  
  15. @Html.DropDownListFor(m => m.Country, new List<SelectListItem>
  16. {
  17.  
  18. new SelectListItem {Value = "IND", Text = "India" },
  19. new SelectListItem {Value = "NEP", Text = "Nepal" },
  20. new SelectListItem {Value = "SIN", Text = "Singapore" },
  21. new SelectListItem {Value = "USA", Text = "USA" },
  22.  
  23. },
  24. new { @class = "form-control"})
Add Comment
Please, Sign In to add comment