コード例 #1
0
        public async Task Handle(DeleteDislike command)
        {
            var retrospective = await _store.GetById <Retrospective>(command.RetrospectiveId);

            retrospective.DeleteDislikeItem(command.DislikeId, command.ParticipantId);
            await _store.Save(retrospective, retrospective.Version);
        }
コード例 #2
0
        public async Task <IActionResult> DeleteDislike(Guid retrospectiveId, Guid dislikeId, string participantId)
        {
            var retro = await _aggRepo.GetById <Retrospective>(retrospectiveId);

            var cmd = new DeleteDislike(retrospectiveId, dislikeId, participantId);
            await _cmdSender.Send(cmd);

            return(RedirectToAction("Get", new { retrospectiveId = retrospectiveId }));
        }