//set stock public void WriteBackStockQuantity(string id, int quantity) { int leftStock = this.GetItemStock(id) + quantity; _initial.WriteInitial(id, STOCK_KEY, leftStock.ToString()); _stockChangeEvent(); }
//update type info public void UpdateType(string id, string[] data) { for (int i = 0; i < data.Length; i++) { _initial.WriteInitial(id, _keyList[i], data[i]); } this.InitialAllCategoryIdList(); _typesUpdateEvent(); }