public ActionResult Put(int id, TreatmentRecordsDto treatmentRecordsDto)
 {
     if (id > 0)
     {
         treatmentRecordsRepository.Update(id, treatmentRecordsDto);
         return(Ok("Patient Details Updated"));
     }
     return(NotFound("Patient with Id " + id.ToString() + " not found to update"));
 }
 public void Put(int TreatmentRecordsId, [FromBody] TreatmentRecords treatmentRecords) => treatmentRecordsRepository.Update(treatmentRecords);