public IHttpActionResult DeleteAll() { // Validate that we can delete _dataChangeValidator.ThrowExceptionIfAnyErrors(_dataChangeValidator.ValidateChange <Demographic>(ChangeActions.Delete, ChangeTargets.AllItems, null)); //delete _demographicRepository.Truncate(); return(Ok()); }
public void DeleteAll() => _demographicRepository.Truncate();