public CampingInfo CampingInfo() { CampingInfo campingInfo = new CampingInfo() { Address = "Rua do Camping Bonitão, 25 - CEP 02157-335 - São Paulo, SP, Brasil", ImagesUrl = new List <string>() { "https://upload.wikimedia.org/wikipedia/commons/0/01/CampingNearTheBeach.jpeg", "https://macamp.com.br/guia/wp-content/uploads//arquivos/guia/arquivos/88/imagens/17a6d085b71.jpg", "https://i3.wp.com/trekkingbrasil.com/wp-content/uploads/lona-sobre-barraca.jpg", "http://www.webcamping.com.br/campings/pedaserra07.jpg", "http://www.portalcanoaquebrada.com.br/camping_canoa_quebrada/camping_canoa_quebrada_03.jpg" }, Name = "Terramar", InfrastructureItems = new List <string>() { "Fogão", "Chuveiro quente", "Banheiro", "Geladeira compartilhada", "WIFI" }, SinglePersonTentPrice = Model.BookingData.SinglePersonTentPrice, TwoPeopleTentPrice = Model.BookingData.TwoPeopleTentPrice, CampingAreaPrice = Model.BookingData.CampingAreaPrice }; return(campingInfo); }
private CampingInfo GetCampingInfo() { if (_campingInfo == null) { var campingTask = Task.Run(() => CampingService.GetCampingInfo()); campingTask.Wait(); _campingInfo = campingTask.Result; } return(_campingInfo); }