title: Return after response.redirect
body: <p>I have method <code>public void categoriesForm_DeleteItem(int categoryID)</code> in
   <code>public partial class Categories_View1 : System.Web.UI.Page</code> . It is modeled after method <code>RemoveItem</code> from tutorial <a href="http://www.asp.net/web-forms/overview/getting-started/getting-started-with-aspnet-45-web-forms/shopping-cart" rel="noreferrer">http://www.asp.net/web-forms/overview/getting-started/getting-started-with-aspnet-45-web-forms/shopping-cart</a> .</p>
  
  <p>My method contains following code:</p>
  
  <pre><code>public void categoriesForm_DeleteItem(int categoryID)
  {
      /* some code ommited */
      if (c != null)
      {
          db.Categories.Remove(c);
          db.SaveChanges();
          Response.RedirectToRoute("CategoriesList");
          //should I add return; here?
      }
      else
      {
          ModelState.AddModelError("NotFoundError", "Category not found.");
          return;
      }
      /* code ommited */
  }
  </code></pre>
  
  <p>Should I add <code>return;</code> after Response.RedirectToRoute("CategoriesList"); ? </p>
  
  <p>One more question... I saw on the tutorial that the method <code>RemoveItem</code> returns <strong>int</strong>, what is the intent behind that return code? Where is that return code useful?</p>