Example #1
0
        public async Task EditCommuneLocationAsync(EditCommuneLocationDto dto)
        {
            var commune = await _unitOfWork.GetRepository <GECommune>().GetAsync(dto.Id);

            commune.GECommuneLocationLongitude = dto.Longitude;
            commune.GECommuneLocationLatitude  = dto.Latitude;

            await _unitOfWork.GetRepository <GECommune>().UpdateAsync(commune);

            await _unitOfWork.CompleteAsync();
        }
Example #2
0
        public async Task <IActionResult> EditCommuneLocationAsync([FromBody] EditCommuneLocationDto dto)
        {
            await _communeService.EditCommuneLocationAsync(dto);

            return(Success());
        }