Example #1
0
 public void Save()
 {
     try
     {
         _context.SaveChanges();
     }
     catch //(DbEntityValidationException e)
     {
         //throw new Exception(e.EntityValidationErrors.First().ValidationErrors.First().ErrorMessage);
     }
 }
Example #2
0
 public void Save()
 {
     _context.SaveChanges();
 }