示例#1
0
 public void DeleteElementHorizontalBarrier(ElementModel elementModel)
 {
     Logger.Info("Delete Element Horizontal Barrier in Cabinet");
     Logger.Debug("Delete Element Horizontal Barrier count: {0}", elementModel.ToString());
     try
     {
         HorizontalBarrier = _mapper.Map <List <ElementModel> >(HorizontalBarrierFactory.Delete(_mapper.Map <ElementModelDTO>(elementModel)));
     }
     catch (Exception ex)
     {
         Logger.Error(ex, "Error Delete Element Horizontal Barrier in Cabinet");
     }
 }
示例#2
0
 public void DeleteHorizontalBarrier(int delete)
 {
     Logger.Info("Delete Horizontal Barrier in Cabinet");
     Logger.Debug("Delete Horizontal Barrier count: {0}", delete);
     try
     {
         HorizontalBarrier = _mapper.Map <List <ElementModel> >(HorizontalBarrierFactory.Delete(delete));
     }
     catch (Exception ex)
     {
         Logger.Error(ex, "Error Delete Horizontal Barrier");
     }
 }