def get_all_lost_found_items(cls): '''Returns the all lost and found items in dictonary format''' lost_found_items = LostAndFoundModel.get_all_lost_found_items() if lost_found_items is None: return None lost_found_list = to_dict(lost_found_items) return lost_found_list
def get_all_found_items(cls): '''Returns all lost items''' found_items = LostAndFoundModel.get_all_found_items() if found_items is None: return None found_items_list = to_dict(found_items) return found_items_list
def get_all_lost_items(cls): '''Returns all lost items''' lost_items = LostAndFoundModel.get_all_lost_items() if lost_items is None: return None lost_items_list = to_dict(lost_items) return lost_items_list
def find_by_category(cls, category): '''Find Item by Item Category''' item_values = ItemModel.find_by_category(category) item_list = to_dict(item_values) if item_values is not None: return item_list return None
def get_lost_found_items_by_description(cls, search_key): '''Returns the matched items by search key in item description''' lost_found_items = LostAndFoundModel.get_lost_found_items_by_description( search_key) if lost_found_items is None: return None lost_found_list = to_dict(lost_found_items) return lost_found_list
def get_all_locations(cls): '''Returns the all location values as dictonary format''' location_values = LocationModel.get_all_loaction() location_list = to_dict(location_values) return location_list
def get_all_items(cls): '''Returns all items''' item_values = ItemModel.get_all_items() item_list = to_dict(item_values) return item_list