//Venue flow public async Task GetAllVenuesAsync() { var venueClient = GetVenueServiceClient(UserInfo.Username, UserInfo.Token); var venues = await venueClient.GetAllAsync(); var list = new List <VenueModel>(); foreach (var item in venues) { list.Add(new VenueModel { Id = item.Id, Name = item.Name, Description = item.Description, Address = item.Address, Phone = item.Phone }); } Venues.Clear(); Venues.AddRange(list); }
public MapModel(IEnumerable <VenueTeamRow> venues) : this() { Venues.AddRange(venues); PrepareAllVenues(); }