示例#1
0
        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());
        }
示例#2
0
 public void DeleteAll() => _ratingsScheduleRepository.TruncateAsync().Wait();