class ActivoServicios: def __init__(self): self.activoCrud= ActivoCrud() # region Servicios Basicos def get(self, id): return self.activoCrud.readId(id) def getAll(self): return self.activoCrud.readAll() def getDTO(self, activo): activoDTO= ActivoDTO(activo) return activoDTO.toJSON() def insert(self, activo): return self.activoCrud.create(activo) def update(self, activo): return self.activoCrud.update(activo) def delete(self, activo): return self.activoCrud.delete(activo) def saveEnumerated(self,activo): return self.activoCrud.saveEnumerated(activo)
def __init__(self): self.activoCrud= ActivoCrud()