public async Task <bool> Delete(Guid id) { await _contentRepository.RemoveAsync(id); return(await _repo.Delete(id)); }
public Task RemoveAsync(DocumentContent content) { var entity = _mapper.Map <DocumentContentEntity>(content); return(_contentRepository.RemoveAsync(entity)); }