public HospitalViewModel MapHospitalDetail(HospitalModel model) { HospitalViewModel hospitalViewModel = _viewModelFactory.CreateHospitalViewModel(); hospitalViewModel.LongId = model.LongId; hospitalViewModel.HospitalName = model.HospitalName; hospitalViewModel.HospitalAddress1 = model.HospitalAddress1; hospitalViewModel.CityId = model.CityId; hospitalViewModel.StateId = model.StateId; hospitalViewModel.HospitalCity = model.CityName; hospitalViewModel.HospitalState = model.StateName; hospitalViewModel.HospitalCountry = model.CountryName; hospitalViewModel.HospitalPhone1 = model.HospitalPhone1; hospitalViewModel.HospitalPhone2 = model.HospitalPhone2; hospitalViewModel.HospitalFax = model.HospitalFax; hospitalViewModel.HospitalEmail = model.HospitalEmail; hospitalViewModel.HospitalCode = model.HospitalCode; hospitalViewModel.TanentId = model.TenantID; return(hospitalViewModel); }