Example #1
0
 public void Upload(AudioAppointment audioAppointment)
 {
     try
     {
         using (var dataContext = new eHealthCareEntities())
         {
             audioAppointment.UniqueIdentifier = this.uniqueGuid;
             dataContext.AudioAppointments.Add(audioAppointment);
             dataContext.SaveChanges();
         }
     }
     catch (DbEntityValidationException ex)
     {
         throw new Exception(ex.EntityValidationErrors.GetValidationErrors());
     }
     catch
     {
         throw;
     }
 }
 public void Upload(AudioAppointment audioAppointment)
 {
     try
     {
         using (var dataContext = new eHealthCareEntities())
         {
             audioAppointment.UniqueIdentifier = this.uniqueGuid;
             dataContext.AudioAppointments.Add(audioAppointment);
             dataContext.SaveChanges();
         }
     }
     catch (DbEntityValidationException ex)
     {
         throw new Exception(ex.EntityValidationErrors.GetValidationErrors());
     }
     catch
     {
         throw;
     }
 }