/// <summary> /// 移除 /// </summary> /// <param name="id"></param> public void RemoveAt(Guid id) { WebAppModel app = apps.FirstOrDefault(m => m.ID == id); if (app != null) { Remove(app); } }
/// <summary> /// 移除 /// </summary> /// <param name="app"></param> public void Remove(WebAppModel app) { apps.Remove(app); }
/// <summary> /// 添加 /// </summary> /// <param name="app"></param> public void Add(WebAppModel app) { apps.Add(app); }