title: How to use BeforeSaveEntitiesDelegate and BeforeSaveEntityDelegate of web api context provider
body: <pre><code>[HttpPost]
      public SaveResult SaveChanges(JObject saveBundle)
      {
          try
          {
  
           EFContextProvider&lt;ManagerContext&gt; _contextProvider =
                             new EFContextProvider&lt;ManagerContext&gt;(); 
           _contextProvider.BeforeSaveEntityDelegate += BeforeSaveEntity();
  
           }
          catch (Exception exp)
          {
              throw exp;
          }
  
      }
  
      public bool BeforeSaveEntity(Dictionary&lt;Type, List&lt;EntityInfo&gt;&gt; saveMap)
      {
         //How do I use this
      }
  </code></pre>
  
  <p>I cannot understand how to use  <code>BeforeSaveEntitiesDelegate</code> and <code>BeforeSaveEntityDelegate</code>. Please help me how to use such features. 
  I have already visited the <a href="http://www.breezejs.com/documentation/efcontextprovider#SaveInterception" rel="nofollow">this</a> site. But failed.</p>