I have a function CreatePerson(int id) , I want to pass id from @Url.Action.
CreatePerson(int id)
id
@Url.Action
Below is the reference code:
pub
This way to pass value from Controller to View:
ViewData["ID"] = _obj.ID;
Here is the way to pass value from View to Controller back: