hi i'm new mvc 5, know how pass data entities single view trying create button opens new view , passes info. wondering ways are.
i have model position has positionid, positionname, positiondescription, storelocation
and second model job application
i want create button in position details index open application create page , pass in positionid used locally in application.
so thought create constructor application takes int id , use this.appliedpositionid = id; or that. issue i'm not sure how pass info using button view. i've tried redirect , redirectaction think using them wrong.
@html.actionlink("create", "create", "yourcontroller", new { id = model.positionid }, null)
assuming have public actionresult create (int id) { ... }
method –
stephen muecke answered solved it, thank you.