I have a model like this
public class Extended_Model
{
public IEnumerable<Model1> Models1 { get; set; }
public IEnumerable<Model2> Models2{ get; set; }
public IEnumerable<Model3> Models3 { get; set; }
public IEnumerable<Model1_Model2> Rel_Model1_Model2 { get; set; }
public IEnumerable<Model1_Model3> Rel_Model1_Model2 { get; set; }
}
I would like to ask you how Html.RenderAction works. I have a Create view for the Extended_Model with 3 RenderActions:
@Html.RenderAction("Create", "Model1");
@Html.RenderAction("Create", "Model2");
@Html.RenderAction("Create", "Model3");
So they show me the Create view of each model.
What I want is to fill the info of the models (hiding their submit buttons), create them and create the relations.
How can I do it? Is RenderAction what I need or anything else?
Thanks!!!