public void UpdateItem(SystemDictionaryType type, SystemDictionaryItem item) { updateItem(type, item); _datasCache.Save(type, (dictionaryItem) => { dictionaryItem[item.Id].Name = item.Name; dictionaryItem[item.Id].Value = item.Value; dictionaryItem[item.Id].Remark = item.Remark; return(true); }); }
public void SaveFlights(string departure, string arrival, DateTime flightDate, IEnumerable <Command.Domain.FlightQuery.Flight> value) { _dataCache.Save(GetKey(departure, arrival, flightDate), value); }