public IActionResult GetPatientDataRange(DateTime startDate, DateTime endDate) { try { return(Ok(patientData.GetPatientDataRange(startDate, endDate))); } catch (Exception ex) { throw ex; } }