예제 #1
0
        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);
        }
예제 #2
0
 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());
        }