public override async Task <int> SaveChangesAsync() { try { return(await base.SaveChangesAsync()); } catch (DbEntityValidationException e) { var newException = new FormattedDbEntityValidationException(e); throw newException; } }
public override int SaveChanges() { try { return(base.SaveChanges()); } catch (DbEntityValidationException e) { var newException = new FormattedDbEntityValidationException(e); throw newException; } }