public JsonResult DeleteCourse(int appointmentId) { return(Json(appointmentData.DeleteAppointment(appointmentId), JsonRequestBehavior.AllowGet)); }
public void DeleteAppointment(AppointmentModels appointment) { AppointmentData appointmentData = new AppointmentData(); appointmentData.DeleteAppointment(appointment); }