-1

I'm newbie ASP.NET MVC.

I have many table such as (Country, State and city). I want to put value in these DropDownListFor in one view. Could you help me please.

Sorry for my bad question and bad English skill.

Ich-Bullet Puen
  • 91
  • 1
  • 4
  • 11

1 Answers1

0

Use viewmodel using all properties from all table

public class dataViewModel
{
public string country { get; set; }
public string state{ get; set; }
//all other properties from other class
}

refer the viewmodel in the View.

delta12
  • 97
  • 1
  • 8