public ActionResult Delete(int id)
        {
            if (id > 0)
            {
                treatmentRecordsRepository.Delete(id);
                return(Ok(" Id deleted"));
            }

            return(NotFound(" ID not found"));
        }
 public void DeleteTreatmentRecords(int TreatmentRecordsId) => treatmentRecordsRepository.Delete(TreatmentRecordsId);