public async Task Handle(ChangeDayAssignEstimatedMinutesCommand message)
        {
            var dayAssign = await repository.Get(message.Id);

            dayAssign.ChangeEstimatedMinutes(message.EstimatedMinutes);
            await repository.Save(dayAssign);
        }
Beispiel #2
0
        public async Task ChangeEstimate(IdValueModel <Guid, int> model)
        {
            IDayAssign dayAssign = dayAssignService.GetDayAssignById(model.Id);

            var estimated = new ChangeDayAssignEstimatedMinutesCommand(dayAssign.Id.ToString());

            estimated.EstimatedMinutes = model.Value;
            await messageBus.Publish(estimated);
        }