Example #1
0
        public static SearchHospitalsResponse ToSearchHospitalsResponse(this HospitalsResponse source)
        {
            if (source == null || source._embedded == null)
            {
                return(null);
            }

            var response = new SearchHospitalsResponse
            {
                Data = source._embedded.Hospitals.ToHospitalDetailsList()
            };

            return(response.PopulatePageDetails(source.Page));
        }