Beispiel #1
0
        public async Task HandleAsync(MarkBugAsInProgress command)
        {
            var Bug = await bugRepository.GetAsync(command.IssueId);

            var originalVersion = Bug.Version;
            await Bug.MarkAsInProgress(callContext.UserId, authorizationService);

            await bugRepository.Update(Bug, originalVersion);
        }
Beispiel #2
0
        public async Task <IActionResult> MarkAsInProgress([FromRoute] Guid projectId, [FromRoute] Guid bugId, [FromBody] MarkBugAsInProgress command)
        {
            command.ProjectId = projectId;
            command.IssueId   = bugId;
            await commandQueryBus.SendAsync(command);

            return(Ok());
        }