コード例 #1
0
 public void RemoveLodging(Guid lodgingId)
 {
     try
     {
         Lodging lodgingToDelete = lodgingRepository.Get(lodgingId);
         lodgingRepository.Remove(lodgingToDelete);
     }
     catch (ClientException e)
     {
         throw new ClientBusinessLogicException(MessageExceptionBusinessLogic.ErrorNotFindLodging, e);
     }
     catch (ServerException e)
     {
         throw new ServerBusinessLogicException("No se puede eliminar el hospedaje deseado.", e);
     }
 }
コード例 #2
0
 public void Remove(Lodging lodging)
 {
     // Add specific business logic here
     _lodgingRepository.Remove(lodging);
 }