示例#1
0
 public Response <int> DeleteProducers(Producers producers)
 {
     try
     {
         var deleteCount = _producerRepository.DeleteProducers(producers);
         return(new Response <int>(true, "Success", deleteCount));
     }
     catch (Exception e)
     {
         _logger.Error($"DeleteProducers Failed: {e.Message}\n {e.StackTrace}");
         return(new Response <int>(false, e.Message, 0));
     }
 }