public async System.Threading.Tasks.Task AssignBugToSprint(Guid bugId, Guid sprintId, ISprintSearcher sprintSearcher) { var bug = Bugs.Single(x => x.Id == bugId); await bug.AssignToSprint(sprintId, sprintSearcher); Update(new BugAssignedToSprint(bug.Id, sprintId)); }
public async System.Threading.Tasks.Task AssignAssigneeToBug(Guid bugId, User.Model.Member assignee, IMembershipService authorizationService) { var bug = Bugs.Single(x => x.Id == bugId); await bug.AssignAssignee(assignee, authorizationService); Update(new AssigneeAssignedToBug(bug.Id, assignee.Id)); }