Métodos usados con frecuencia
Métodos usados con frecuencia
Métodos usados con frecuencia
Métodos usados con frecuencia
public int PostAppointment(Appointment appointment, int studentId) { int result; try { using (var context = new DBEntities()) { return(result = context.Create_Appointment(appointment.Professor_course_id, studentId, appointment.Start_hour, appointment.End_hour, appointment.Day)); } } catch (SqlException ex) { Console.WriteLine(ex); throw; } }