title: Control Flow via Return vs. If/Else
body: <p>Which one is better (implicit control flow via <strong>return</strong> or control flow via <strong>if</strong>) -- see below. Please explain what you see as advantage/disadvantage to either one. I like option A because it's less code. </p>
  
  <h2>Flow via Return:</h2>
  
  <pre><code>public ActionResult Edit(MyClass class)
  {
      if (!class.Editable)
         return null;
  
      class.Update();
      return View();
  }
  </code></pre>
  
  <h2>Flow via If/Else:</h2>
  
  <pre><code>public ActionResult Edit(MyClass class)
  {
      if (class.Editable)
      {
         class.Update();
         return View();
      }
      else
      {
         return null;
      }
  }
  </code></pre>