asp.net mvc - Object value is not preserved from view to controller -
i using model pass values controller model. have first controller action method : public actionresult createadform(sitedirectionmodel model){ mymodel mymodel= new mymodel{ id = model.id, name = model.name, //an on sitedirection = model //a sitedirectionmodel object }; return view(mymodel); } the point of method preload values , pass view form : @model myproject.models.mymodel @using (html.beginform("validateform", "create", formmethod.post)) { @html.antiforgerytoken() <hr /> @html.validationsummary(true, "", new { @class = "text-danger" }) <div class="form-group"> @html.labelfor(m=>m.name, new { @class= "col-md-2 control-label" }) <div class="col-md-10"> @html.textboxfor(m => m.name, new { @class =...