Exemple #1
0
 void IUnitOfWork.SaveChanges()
 {
     try
     {
         Context.SaveChanges();
     }
     catch (DbEntityValidationException ex)
     {
         throw DbExceptionsConverter.Convert(ex);
     }
     catch (DbUpdateException ex)
     {
         throw DbExceptionsConverter.Convert(ex);
     }
 }