Create a ViewModel for example
public class SampleViewModel
{
public int Id{get;set;}
public string Name{get;set;}
public List<customer> Customers{get;set;}
}</customer>
//Your loading index look like this
public ActionResult Index()
{
List<customers> customers=
var viewModel=new SampleViewModel();
viewModel.Customers=customers;
return View(viewModel);
}
[HttpPost]
public ActionResult Create(SampleViewModel viewModel)
{
}</customers>
in the view return model as
@model SampleViewModel
Hope this helps