public IActionResult LoadValid()
 {
     try
     {
         var tempPatientLaboratoryExtracts = _patientLaboratoryExtractRepository.GetAll().ToList();
         return(Ok(tempPatientLaboratoryExtracts));
     }
     catch (Exception e)
     {
         var msg = $"Error loading valid PatientLaboratory Extracts";
         Log.Error(msg);
         Log.Error($"{e}");
         return(StatusCode(500, msg));
     }
 }
        public async Task <IActionResult> LoadValid(int?page, int pageSize)
        {
            try
            {
                var tempPatientLaboratoryExtracts = await _patientLaboratoryExtractRepository.GetAll(page, pageSize);

                return(Ok(tempPatientLaboratoryExtracts.ToList()));
            }
            catch (Exception e)
            {
                var msg = $"Error loading valid PatientLaboratory Extracts";
                Log.Error(msg);
                Log.Error($"{e}");
                return(StatusCode(500, msg));
            }
        }