public IActionResult Edit(int?id) { if (id != null) { var item = _service.GetRoleItem(id.Value); return(View(item)); } return(View()); }