title: Tracking exceptions on AddObject in Entity Framework with Asp.net MVC
body: <p>Suppose I have codes like these</p>
  
  <pre><code>public void Upload (Picture picture)
     try
          {
            //ps is the entity framework
              ps.AddToPictures(picture);
              ps.SaveChanges();
  
              return picture.PictureId;
          }
          catch (Exception e) {
              //some codes to bound the exception to the model 
          }
  </code></pre>
  
  <p>How can I present the exceptions to the model and present them in the view?</p>