public IActionResult Delete(int id)
 {
     try
     {
         patientRepo.DischargePatient(id);
         return(Ok());
     }
     catch (Exception)
     {
         return(NotFound());
     }
 }