Exemplo n.º 1
0
        public async Task <IEnumerable <ApplicationCore.Models.Response.Places> > GetAllAsync()
        {
            List <ApplicationCore.Models.Response.Places> placesResponses = new List <ApplicationCore.Models.Response.Places>();
            var places = await _placesRepository.ListAllAsync();

            foreach (var item in places)
            {
                placesResponses.Add(new ApplicationCore.Models.Response.Places
                {
                    PlaceName = item.PlaceName,
                    PlaceId   = item.PlaceId
                });
            }
            return(placesResponses);;
        }