title: Adding a success message after deleting item, in MVC4
body: <p>I have a delete hyperlink shown on the screen:</p>
  
  <p><strong>UsersPartial VIEW:</strong></p>
  
  <pre><code>&lt;%: Ajax.ActionLink("Delete", "Delete", new { id = item.UserID }, new AjaxOptions { HttpMethod = "GET", UpdateTargetId = "tabs-users", InsertionMode = InsertionMode.Replace }, htmlAttributes: new { data_target = "#tabs-users" })%&gt;
  </code></pre>
  
  <p>This calls a method in my controller</p>
  
  <p><strong>CONTROLLER</strong></p>
  
  <pre><code>    [HttpGet]
      public PartialViewResult Delete(int id)
      {
          userManager.DeleteUser(id);
          ViewBag.Status = string.Format("User deleted ok, id: {0}", id);
          return PartialView("UsersPartial", userManager.GetUsers());
      }
  </code></pre>
  
  <p>In the above code, I return a PartialView, this works.  I would like to also display a message at the top of this view, defined above in ViewBag.Status, but I only want it to show this div once this action is taken.</p>
  
  <p>Also note, that my view I am returning to has is strongly typed:</p>
  
  <pre><code>&lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl&lt;IEnumerable&lt;LMS.Data.User&gt;&gt;" %&gt;
  </code></pre>
  
  <p>Lastly, the status message I'd like to display is a div that I created into another partial view so I can show it throughout the site.</p>
  
  <pre><code>&lt;%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl&lt;dynamic&gt;" %&gt;
  
  &lt;div id="status" class="statusok"&gt;
  &lt;%: ViewBag.Status %&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>What's the proper way to do this?</p>