Exemplo n.º 1
0
 public int AcceptAppointment(int appointmentId)
 {
     try
     {
         using (var context = new DBEntities())
         {
             return(context.Accept_Appointment(appointmentId));
         }
     }
     catch (SqlException ex)
     {
         Console.WriteLine(ex);
         throw;
     }
 }