private void CreateTag(object obj) { CreateTagVM = new CreateTagVM(); CreateTagVM.RequestClosing += (sender, args) => { CreateTagVM = null; }; }
private Task CreateTagTask(CreateTagVM createTagVM) { return(Task.Run(() => { ImoutoService.Use(imoutoService => { imoutoService.CreateTag(new Tag { HasValue = createTagVM.HasValue, SynonymsCollection = createTagVM.SynonymsCollection, Title = createTagVM.Title, Type = createTagVM.SelectedType }); }); })); }