public JsonResult GetHotelLocationByHotelId(int hotelId) { _serviceEndPoint = new ServicesEndPoint.GeneralSevices.ServicesEndPoint(_simbaToursUnitOfWork, _emailService); Location result = _serviceEndPoint.GetHotelLocationByHotelId(hotelId); Address address = _serviceEndPoint.GetHotelAddressById(result.AddressId); return(Json(new LocationViewModel { LocationName = result.LocationName, Address = new AddressViewModel { AddressId = address.AddressId, AddressLine1 = address.AddressLine1, AddressLine2 = address.AddressLine2, Country = address.Country, PostCode = address.PostCode, Town = address.Town, PhoneNumber = address.PhoneNumber }, AddressId = address.AddressId, LocationId = result.LocationId, Country = address.Country })); }