public bool IsHave(string id) { if (!Datas.ContainsKey(id)) { return(false); } return(true); }
public virtual bool Add(string guid, T t) { bool isSucess = false; if (!Datas.ContainsKey(guid)) { Datas.Add(guid, t); isSucess = true; Event.Notify(EventCall, new ModelEventArgs <T>() { Data = t, Status = ModelStatus.Add }); } return(isSucess); }