title: Are there any way to send value into protected override void OnActionExecuted in MVC
body: <p>I want to send radio button value to controller <code>protected override void OnActionExecuted</code> which is inside <code>_Layout</code>. </p>
  
  <p>Can anyone please suggest me how can I do this?</p>
  
  <p>_Layout</p>
  
  <pre><code>&lt;div class="NorthSouthHemisphere"&gt;
        @Html.RadioButton("NorthernSouthernHemisphere", "NH")Northern
        @Html.RadioButton("NorthernSouthernHemisphere", "SH")Southern
    &lt;/div&gt;
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>protected override void OnActionExecuted(ActionExecutedContext filterContext)
          {
              if (User != null)
              {
                  var context = new ApplicationDbContext();
                  var username = User.Identity.Name;
  
                  if (!string.IsNullOrEmpty(username))
                  {
                      var user = context.Users.SingleOrDefault(u =&gt; u.UserName == username);
                     var Account = context.Account.SingleOrDefault(u =&gt; u.AccountId == user.AccountID);
                      var Country = context.Country.SingleOrDefault(u =&gt; u.CountryId == user.CountryID);
                      string fullName = string.Concat(new string[] { user.FirstName, " ", user.LastName });
  
                  }
              }
              Hemishpere();
              base.OnActionExecuted(filterContext);
          }
  </code></pre>
  
  <p>Script</p>
  
  <pre><code> $(document).on('change', '.NorthSouthHemisphere input[type = "radio"]', function () {
                   var selectedVal = "";
                  var selected = $(".NorthSouthHemisphere input[type='radio']:checked");
                  if (selected.length &gt; 0) {
                      selectedVal = selected.val();
  
                  }
              })
  </code></pre>