public User FindUserQualif(int id) { if (!UsersQualif.ContainsKey(id)) { throw new Exception($"Unable to find the user with id: {id}"); } return(UsersQualif[id]); }
public void AddUserQualif(User newUser) { if (UsersQualif.ContainsKey(newUser.Id)) { return; } UsersQualif.Add(newUser.Id, newUser); newUser.City = this; }