public async Task <bool> DeleteEntityAsync(Guid id) { if (!await _repository.EntityExistsAsync(id)) { throw new NotFoundException(); } return(await _repository.RemoveEntity(id)); }
public async Task <bool> DeleteEntityAsync(Guid id) { if (!await _repository.EntityExistsAsync(id)) { return(false); } return(await _repository.RemoveEntity(id)); }