public void Handle(UpdateAttributeCommand command) { var attribute = _repository.Get(command.Identity); attribute.Foreach(x => x.ReLabel(new AttributeName(command.AttributeName))); _repository.Save(attribute); }
public async Task <IProcessResult> Put(UpdateAttributeCommand command) => await mediator.Send(command);