public IActionResult DeletePointOfInterest([FromBody] PointOfInterestDto pointOfInterestDto) { PointOfInterest pointOfInterest = _mapper.Map <PointOfInterest>(pointOfInterestDto); _pointOfInterest.Delete(pointOfInterest.Id); return(Ok()); }
public async Task DeleteAsync(Guid id) { var pointOfInterest = await _repository.GetById(id).ConfigureAwait(false); if (pointOfInterest != null) { await _repository.Delete(id).ConfigureAwait(false); } }
public void Delete(Guid id) { _repository.Delete(id); }