/// <summary> /// テーマ登録日時更新 /// </summary> /// <param name="model"></param> private void UpdateThemeDate(ThemeModel model) { var target = ThemeList.Where(x => x.ThemeId == model.ThemeId).SingleOrDefault(); target.InputDate = DateTime.Now; }
/// <summary> /// テーマ削除 /// </summary> /// <param name="model"></param> private void DeleteTheme(ThemeModel model) { var target = ThemeList.Where(x => x.ThemeId == model.ThemeId).SingleOrDefault(); ThemeList.Remove(target); }