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); } }
public Hospital GetHospitalByID(int ID) { var result = _hospitalRepository.GetHospitalByID(ID); return(result); }