Option in rewriting some nested if statements
<p>I have a method which used some nested if statements, I'm pretty new at programming, so I would like to know if there is a better way to write the same logic.</p>

<p>For example I would like remove avoid the twice</p>

<pre><code>_typologyRepository.Update(typology);
_typologyRepository.Save();
</code></pre>

<p>Could you point me out in the right direction? Thanks</p>

<pre><code>  public void Update(Typology typology, string nameOriginalValue)
  {
        if (typology.Name == nameOriginalValue)
        {
            _typologyRepository.Update(typology);
            _typologyRepository.Save();
        }
        else
        {
            if (IsUniqueName(typology.Name))
            {
                _typologyRepository.Update(typology);
                _typologyRepository.Save();
            }
            else
                _validatonDictionary.AddError("Name", errorMessageNameUnique);
        }
    }
</code></pre>
