public async Task UpdateAsync(PointOfInterestEntity pointOfInterest)
        {
            Guard.ArgumentNotNull(pointOfInterest, nameof(pointOfInterest));

            var insertedPointOfInterest = await _repository.GetById(pointOfInterest.Id).ConfigureAwait(false);

            if (insertedPointOfInterest != null)
            {
                await _repository.Update(pointOfInterest).ConfigureAwait(false);
            }
        }
예제 #2
0
 public async Task Update(PointOfInterestDto input)
 {
     var pointsOfInterest = _mapper.Map <PointOfInterest>(input);
     await _repository.Update(pointsOfInterest);
 }
예제 #3
0
 public PointOfInterest Update(PointOfInterest PointOfInterest)
 {
     return(_Repository.Update(PointOfInterest));
 }