public async Task EditTagAsync(EditTag command) { var tag = await this.tagRepository.GetAsync(command.ExternalId.ToString()); tag.Edit(command.Name, tag.OwnerId, command.IsDeleted); await this.tagRepository.UpdateAsync(tag); }
private void buttonEdit_Click(object sender, RoutedEventArgs e) { if (SelectedTag != null) { EditTag editTag = new EditTag(SelectedTag.Id); editTag.Show(); } else { MessageBox.Show("Molimo, odaberite etiketu za ažuriranje", "Ažuriranje etikete"); } }
public async Task <IActionResult> Put(Guid id, [FromBody] EditTag command) { await this.DispatchAsync(command); return(NoContent()); }