public void Delete(int id) { var foundposition = _repository.GetById(id); if (foundposition == null) { throw new ArgumentNullException(nameof(foundposition)); } _repository.Delete(foundposition); }
public void Delete(int id) { var foundposition = _repository.GetById(id); if (foundposition == null) { throw new ArgumentNullException(nameof(foundposition)); } _repository.Delete(foundposition); }