Пример #1
0
        public int DeleteAppointment(int appointmentId)
        {
            int result;

            try
            {
                using (var context = new DBEntities())
                {
                    return(result = context.Delete_Appointment(appointmentId));
                }
            }
            catch (SqlException ex)
            {
                Console.WriteLine(ex);
                throw;
            }
        }