public IActionResult Delete(PatientData patientData)
        {
            var result = _patientDataService.Delete(patientData);

            if (result.Success)
            {
                return(Ok(patientData));
            }
            return(BadRequest());
        }
Ejemplo n.º 2
0
 // TODO: Check if patient has any reservation etc
 public async Task DeletePatient(int id)
 {
     await _patientDataService.Delete(id);
 }