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(); }
public async Task <IActionResult> EditCommuneLocationAsync([FromBody] EditCommuneLocationDto dto) { await _communeService.EditCommuneLocationAsync(dto); return(Success()); }