public static bool extendPrescription(int prescriptionId, int patientId, DateTime newEndDate) { PatientModel patientID = new PatientModel { Id = patientId }; return(patientID.extendPrescription(prescriptionId, newEndDate)); }