def delete_controller(self, email):
     if email == "" or len(email) == 0:
         message_display("이메일 형식이 잘못됐습니다.")
     else:
         bm = service.AIService()
         message = bm.entity_remove(email)
         message_display(message)
 def get_entity_controller(self, email):
     if email == "" or len(email) == 0:
         message_display("이메일 형식이 잘못됐습니다.")
     else:
         bm = service.AIService()
         ai_entity = bm.get_ai_entity(email)
         if ai_entity != None:
             ai_entity_display(ai_entity)
         else:
             message_display("존재하지 않습니다.")
 def register_controller(self, ai_entity):
     #email valid check - regular express사용  email형식 체크
     if ai_entity.email == "" or len(ai_entity.email) == 0:
         message_display("이메일 형식이 잘못됐습니다.")
     else:
         #business method delegation
         bm = service.AIService()
         message = bm.register(ai_entity)
         #view select
         message_display(message)
 def file_write(self):
     bm = service.AIService()
     bm.save_list()
 def file_read(self):
     bm = service.AIService()
     bm.read_list()
 def get_all_entity_controller(self):
     bm = service.AIService()
     ai_list = bm.get_all_entity()
     ai_list_display(ai_list)
 def close(self):
     bm = service.AIService()
     bm.close_DB()