public async Task Handle(UpdateDislike command) { var retrospective = await _store.GetById <Retrospective>(command.RetrospectiveId); retrospective.UpdateDislikeItem(command.DislikeId, command.Description, command.ParticipantId); await _store.Save(retrospective, retrospective.Version); }
public async Task <IActionResult> UpdateDislike(Guid retrospectiveId, Guid dislikeId, string participantId, [FromBody] string description) { var retro = await _aggRepo.GetById <Retrospective>(retrospectiveId); var cmd = new UpdateDislike(retrospectiveId, dislikeId, description, participantId); await _cmdSender.Send(cmd); var response = RedirectToAction("Get", new { retrospectiveId = retrospectiveId }); return(response); }