/// <summary> /// create an appointment /// </summary> /// <param name="type">the appointment type</param> /// <param name="startTime">the start time</param> /// <param name="availableTime">the time span in x * 45min</param> /// <param name="instructor">the user to bind the appointment too</param> /// <param name="appointmentTable">Optional* the table to execute on</param> /// <returns>bool</returns> public static bool AddAppointment(string type, DateTime startTime, int availableTime, string instructor, string appointmentTable = AppointmentTable) { return(MySql.AddAppointment(instructor, startTime.ToString("G", CultureInfo.CreateSpecificCulture("zh-CN")), availableTime, type, appointmentTable)); }