public SuccessResponse Delete(DeleteSaucerConfigurationRequest request)
 {
     try
     {
         var saucerConfiguration = _saucerConfigurationRepository.FindBy(request.Id);
         saucerConfiguration.ThrowExceptionIfRecordIsNull();
         _saucerConfigurationRepository.Remove(saucerConfiguration);
         return(new SuccessResponse {
             IsSuccess = true
         });
     }
     catch (DataAccessException)
     {
         throw new ApplicationException();
     }
 }
Пример #2
0
 public SuccessResponse Delete(DeleteSaucerConfigurationRequest request)
 {
     return(_saucerConfigurationService.Delete(request));
 }