예제 #1
0
        public async Task AddPoints([FromBody] GeoPoint _points)
        {
            await eventRepository.CleanEventFromGeoPoints(_points.EventId);

            for (int i = 0; i < _points.PointLatitiudeList.Count(); i++)
            {
                await eventRepository.AddPoint(new GeoPoint { EventId = _points.EventId, PointLatitiude = _points.PointLatitiudeList[i], PointLongitude = _points.PointLongitudeList[i] });
            }
        }