My model class
public class Hop
{
public string Name { get; set; }
}
{
public string Name { get; set; }
}
public class Home
{
public IEnumerable selHopList { get; set; }
}
my controller
------------
[HttpPost]
public ActionResult CreateHop(Home hopValues)
{
Ienumarable list= hopValues.selHopList; //like this i want get
return View();
}
public ActionResult CreateHop(Home hopValues)
{
Ienumarable list= hopValues.selHopList; //like this i want get
return View();
}
In my controller i want to get these values how? can any one help me .
Ramesh MaruthiPosted Oct 20, 2014, 2:15 PM
http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/accessing-your-models-data-from-a-controller