public List <int> Add_Slot(List <int> slot_ids) { if (slot_ids == null) { return(null); } List <int> ret_rids = new List <int>(); int nextSortNo = this.getNextSortNo <Mem_slotitem>(this.User_slot.get_Values(), slot_ids.get_Count()); slot_ids.ForEach(delegate(int x) { Mem_slotitem mem_slotitem = new Mem_slotitem(); int newRid = this.getNewRid(Enumerable.ToList <int>(this.User_slot.get_Keys())); if (mem_slotitem.Set_New_SlotData(newRid, nextSortNo, x)) { nextSortNo++; this.User_slot.Add(newRid, mem_slotitem); ret_rids.Add(newRid); this.Add_Book(2, mem_slotitem.Slotitem_id); } }); return(ret_rids); }
public List <int> Add_Slot(List <int> slot_ids) { if (slot_ids == null) { return(null); } List <int> ret_rids = new List <int>(); int nextSortNo = getNextSortNo(User_slot.Values, slot_ids.Count); slot_ids.ForEach(delegate(int x) { Mem_slotitem mem_slotitem = new Mem_slotitem(); int newRid = getNewRid(User_slot.Keys.ToList()); if (mem_slotitem.Set_New_SlotData(newRid, nextSortNo, x)) { nextSortNo++; User_slot.Add(newRid, mem_slotitem); ret_rids.Add(newRid); Add_Book(2, mem_slotitem.Slotitem_id); } }); return(ret_rids); }