public ActionResult Delete(string issueId) { _deleteIssueCommand.Invoke(new DeleteIssueRequest { IssueId = issueId, CurrentUser = Core.AppContext.CurrentUser }); ConfirmationNotification(IssueResources.DeleteIssueStatus_Ok.FormatWith(IdHelper.GetFriendlyId(issueId))); return(RedirectToAction("index", "issues")); }
public BatchDeleteIssuesResponse Invoke(BatchDeleteIssuesRequest request) { Trace("Starting..."); TraceObject(request); var issueIds = request.IssueIds.Select(i => Issue.GetId(i.Split('|')[0])).ToList(); foreach (var issueId in issueIds) { _deleteIssueCommand.Invoke(new DeleteIssueRequest { CurrentUser = request.CurrentUser, IssueId = issueId, IsBatchDelete = true }); } Session.AddCommitAction(new RaiseIssueDeletedEvent(string.Join("^", request.IssueIds))); return(new BatchDeleteIssuesResponse()); }