async void ExecuteSubmitCommand() { System.Diagnostics.Debug.WriteLine(this.Tags); //選択された Tag を取得し、ThanksCard.ThanksCardTags にセットする。 List <ThanksCardTag> ThanksCardTags = new List <ThanksCardTag>(); foreach (var tag in this.Tags.Where(t => t.Selected)) { ThanksCardTag thanksCardTag = new ThanksCardTag(); thanksCardTag.TagId = tag.Id; ThanksCardTags.Add(thanksCardTag); } this.ThanksCard.ThanksCardTags = ThanksCardTags; ThanksCard createdThanksCard = await ThanksCard.PostThanksCardAsync(this.ThanksCard); //TODO: Error handling this.regionManager.RequestNavigate("ContentRegion", nameof(Views.ThanksCardList)); const string message = "送信しました"; const string caption = "お知らせ"; System.Windows.Forms.MessageBox.Show(message, caption, MessageBoxButtons.OK, MessageBoxIcon.Information); }
public async void Submit() { ThanksCard createdThanksCard = await ThanksCard.PostThanksCardAsync(this.ThanksCard); //TODO: Error handling Messenger.Raise(new WindowActionMessage(WindowAction.Close, "Created")); }
async void ExecuteSubmitCommand() { System.Diagnostics.Debug.WriteLine(this.Categorys); ThanksCard createdThanksCard = await ThanksCard.PostThanksCardAsync(this.ThanksCard); //TODO: Error handling this.regionManager.RequestNavigate("ContentRegion", nameof(Views.ThanksCardList)); }
async void ExecuteSubmitCommand() { System.Diagnostics.Debug.WriteLine(this.Tags); //選択された Tag を取得し、ThanksCard.ThanksCardTags にセットする。 List <ThanksCardTag> ThanksCardTags = new List <ThanksCardTag>(); foreach (var tag in this.Tags.Where(t => t.Selected)) { ThanksCardTag thanksCardTag = new ThanksCardTag(); thanksCardTag.TagId = tag.Id; ThanksCardTags.Add(thanksCardTag); } this.ThanksCard.ThanksCardTags = ThanksCardTags; ThanksCard createdThanksCard = await ThanksCard.PostThanksCardAsync(this.ThanksCard); //TODO: Error handling this.regionManager.RequestNavigate("ContentRegion", nameof(Views.ThanksCardList)); }