Esempio n. 1
0
        public async Task HandleAsync(Create command)
        {
            var user = await _userRepository.GetAsync(command.UserId);

            await _labelService.CreateAsync(command.Id, user, command.Name);

            var label = await _labelService.GetAsync(command.Id, user.Id);


            var l = _mapper.Map <LabelDto>(label);

            _cache.SetLabel(_mapper.Map <LabelDto>(label));
        }