title: soft delete in asp.net identity
body: <p>I'm new to asp.net.   How to store the value of IsDeleted to database?</p>
  
  <pre><code>[HttpPost, ActionName("Delete")]
  [ValidateAntiForgeryToken]
  public async Task&lt;ActionResult&gt; DeleteConfirmed(string id)
  {
      if (ModelState.IsValid)
      {     
          var user = await UserManager.FindByIdAsync(id);
  
         //set IsDeleted  to true
          user.DeleteUser();
  
          return RedirectToAction("Index");
      }
      return View();
  }
  </code></pre>