public async Task <IHttpActionResult> DeleteAsync() { // Validate that we can delete _dataChangeValidator.ThrowExceptionIfAnyErrors( _dataChangeValidator.ValidateChange <RatingsPredictionSchedule>( ChangeActions.Delete, ChangeTargets.AllItems, null )); await _ratingsScheduleRepository.TruncateAsync(); return(Ok()); }
public void DeleteAll() => _ratingsScheduleRepository.TruncateAsync().Wait();