Hi my create method receives an int how can I allow this to be null-able? So I can use this method without the int sometimes.
public ActionResult Create(int id)
{
var model = new Job { IncidentID = id };
ViewBag.ActionCode = new SelectList(db.ActionTypes, "ActionCode", "ActionCode");
return View(model);
}
Obviously I've tried
(int ? id)
but then here it is not happy as it cant convert int? to int here :
var model = new Job { IncidentID = id };