public IActionResult Edit(int id) { Password item = password_repo.GetItem(id); if (item == null) { item = new Password(); item.Name = "ERROR: Item not found with that ID."; item.Username = ""; item.PasswordValue = ""; } return(View(item)); }
public IActionResult Edit(int id) { Password item = password_repo.GetItem(id); if (item == null) { item = new Password(); item.Name = "ERROR: Item not found with that ID."; item.Username = ""; item.PasswordValue = ""; } return(View(item)); }