operators = operators.Where(o => false));>As for changing the type of the id, can't you just change the controller to accept string in place of int?
var url = '/Operator/Edit/' + id; $.get(url, function (html) { $($dlg).html(html); }); RunModalDialog("Edit Operator: " + fullName);So, the url variable is correct '/Operator/Edit/ADMIN ' (space at the end - could it be a problem)?
// GET: /Operator/Edit/Admin [HttpGet] public ActionResult Edit(String code) { var oOperator = Db.GetOperatorByCode(code); OperatorViewModel model = new OperatorViewModel(oOperator); return PartialView("_OperatorForm", model); }UPDATE. Never mind, I should have named the parameter id here, not code.