def update(self, eid, data):
     d = {}
     if data.get("alias", "") != "":
         d["enterprise_alias"] = data["alias"]
     if data.get("name", "") != "":
         d["enterprise_name"] = data["name"]
     enterprise_repo.update(eid, **data)
 def update_alias(self, eid, alias):
     data = {
         "enterprise_alias": alias,
     }
     enterprise_repo.update(eid, **data)