I created the default scaffold for my models and the edit method doesn't work, because one of the properties can't be null and i don't want to change it, but i have to because the method must have something that is not null. My question is how can i trans parameters from one action that returns a view to another action, and how can i use this line which came with the default scaffold?:
ViewBag.CreatorId = new SelectList(db.Users, "Id", "NickName", plan.CreatorId);
In other post i saw someone who sent the id of the submit button which is equals to a specific data from the view. Something like that:
<input type="submit" value="Save" class="btn btn-default" id = "@Model.CreatorId" />
Is it possible? And if it is, how to i receive that id in the controller (what type is it)?
The properties are: name, description, level, id and creator id. The level, name and description Obtained by editorfor html helper and the id and creator id should stay the same.