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); } }
public void Remove(Lodging lodging) { // Add specific business logic here _lodgingRepository.Remove(lodging); }