Esempio n. 1
0
 public HospitalDTO GetHospitalsByID(int hospitalID)
 {
     try
     {
         var hospital = _hospitalRepository.GetHospitalByID(hospitalID);
         return(ConvertTODTO(hospital));
     }
     catch (Exception ex)
     {
         log.ErrorFormat("Exception occured while retreiving Hospital Info Info Ex:{0}", ex.Message);
         return(null);
     }
 }
Esempio n. 2
0
        public Hospital GetHospitalByID(int ID)
        {
            var result = _hospitalRepository.GetHospitalByID(ID);

            return(result);
        }